From jira-events at lists.jboss.org Fri Jun 18 05:04:07 2010 Content-Type: multipart/mixed; boundary="===============3059174921452570361==" MIME-Version: 1.0 From: Alan Chan (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Created: (RF-8771) rich:suggestionbox selection disappeared when click browser scroll bars in IE Date: Fri, 18 Jun 2010 05:04:07 -0400 Message-ID: <156912226.8737.1276851847143.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> --===============3059174921452570361== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable rich:suggestionbox selection disappeared when click browser scroll bars in = IE ---------------------------------------------------------------------------= -- Key: RF-8771 URL: https://jira.jboss.org/browse/RF-8771 Project: RichFaces Issue Type: Bug Security Level: Public (Everyone can see) Components: component-input Affects Versions: 3.3.3.Final, 3.3.3.CR1, 3.3.3.BETA1, 3.3.2.SR1 Environment: Apache MyFaces 1.2.8, Facelets 1.1.14, Richfaces 3.3.= 2.SR1, Windows XP, IE 7. Reporter: Alan Chan Go to the Richfaces livedemo suggestionbox usage: http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf Resize IE browser small enough to trigger the Browser scrollbar to be shown. Type something in the suggestionbox and show some choices. Then click the scrollbar. The selection choices are disappeared. Only IE happens. Firefox 3.5, Safari and Chrome has no problem. (i.e. can s= croll the scroll bar and then select the choices from suggestionbox) Scenerio: when the suggestion box is placed near the edge of the browser vi= ewport, user want to scroll the scrollbar to see the selection choices. See= attached screenshot. I found a little workaround that works. In file /ui/suggestionbox/src/main/= resources/org/richfaces/renderkit/html/scripts/suggestionbox.js //IE only = if (RichFaces.navigatorType() =3D=3D RichFaces.MSIE) { Event.observe(this.element, "focusout", function(event) { var elt =3D event.toElement; if (elt.parentElement =3D=3D null) { //------------ added. Becaus= e when click the browser scrollbar, the elt is this.element.keepFocus =3D true; //-----------added elt =3D undefined; //----------added } //----------added while (elt) { if (elt =3D=3D this.update) { this.element.keepFocus =3D true; elt =3D undefined; } else { elt =3D elt.parentNode; } } }.bindAsEventListener(this)); } A better solution should be, e.g. when displaying the suggestion, and if th= e textbox is too close to the bottom of the viewport, the selection should = snap to the top of the textbox i/o always snap to the bottom. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============3059174921452570361==-- From jira-events at lists.jboss.org Fri Jun 18 05:08:46 2010 Content-Type: multipart/mixed; boundary="===============0757824641303436051==" MIME-Version: 1.0 From: Alan Chan (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-8771) rich:suggestionbox selection disappeared when click browser scroll bars in IE Date: Fri, 18 Jun 2010 05:08:46 -0400 Message-ID: <1045912377.8744.1276852126489.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 156912226.8737.1276851847143.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============0757824641303436051== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/browse/RF-8771?page=3Dcom.atlassian.jira.plug= in.system.issuetabpanels:all-tabpanel ] Alan Chan updated RF-8771: -------------------------- Attachment: suggestion_scroll.PNG > rich:suggestionbox selection disappeared when click browser scroll bars i= n IE > -------------------------------------------------------------------------= ---- > > Key: RF-8771 > URL: https://jira.jboss.org/browse/RF-8771 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-input > Affects Versions: 3.3.2.SR1, 3.3.3.BETA1, 3.3.3.CR1, 3.3.3.Final > Environment: Apache MyFaces 1.2.8, Facelets 1.1.14, Richfaces 3.3= .2.SR1, Windows XP, IE 7. > Reporter: Alan Chan > Attachments: suggestion_scroll.PNG > > > Go to the Richfaces livedemo suggestionbox usage: > http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf > Resize IE browser small enough to trigger the Browser scrollbar to be sho= wn. > Type something in the suggestionbox and show some choices. > Then click the scrollbar. > The selection choices are disappeared. > Only IE happens. Firefox 3.5, Safari and Chrome has no problem. (i.e. can= scroll the scroll bar and then select the choices from suggestionbox) > Scenerio: when the suggestion box is placed near the edge of the browser = viewport, user want to scroll the scrollbar to see the selection choices. S= ee attached screenshot. > I found a little workaround that works. In file /ui/suggestionbox/src/mai= n/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js > //IE only = > if (RichFaces.navigatorType() =3D=3D RichFaces.MSIE) { > Event.observe(this.element, "focusout", function(event) { > var elt =3D event.toElement; > if (elt.parentElement =3D=3D null) { //------------ added. Beca= use when click the browser scrollbar, the elt is > this.element.keepFocus =3D true; //-----------added > elt =3D undefined; //----------added > } //----------added > while (elt) { > if (elt =3D=3D this.update) { > this.element.keepFocus =3D true; > elt =3D undefined; > } else { > elt =3D elt.parentNode; > } > } > }.bindAsEventListener(this)); > } > A better solution should be, e.g. when displaying the suggestion, and if = the textbox is too close to the bottom of the viewport, the selection shoul= d snap to the top of the textbox i/o always snap to the bottom. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============0757824641303436051==-- From jira-events at lists.jboss.org Wed Jun 30 09:52:46 2010 Content-Type: multipart/mixed; boundary="===============3894621283040797417==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-8771) rich:suggestionbox selection disappeared when click browser scroll bars in IE Date: Wed, 30 Jun 2010 09:52:46 -0400 Message-ID: <420407012.19005.1277905966671.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 156912226.8737.1276851847143.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============3894621283040797417== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/browse/RF-8771?page=3Dcom.atlassian.jira.plug= in.system.issuetabpanels:all-tabpanel ] Nick Belaevski updated RF-8771: ------------------------------- Assignee: Nick Belaevski Fix Version/s: Future_3.X > rich:suggestionbox selection disappeared when click browser scroll bars i= n IE > -------------------------------------------------------------------------= ---- > > Key: RF-8771 > URL: https://jira.jboss.org/browse/RF-8771 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-input > Affects Versions: 3.3.2.SR1, 3.3.3.BETA1, 3.3.3.CR1, 3.3.3.Final > Environment: Apache MyFaces 1.2.8, Facelets 1.1.14, Richfaces 3.3= .2.SR1, Windows XP, IE 7. > Reporter: Alan Chan > Assignee: Nick Belaevski > Fix For: Future_3.X > > Attachments: suggestion_scroll.PNG > > > Go to the Richfaces livedemo suggestionbox usage: > http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf > Resize IE browser small enough to trigger the Browser scrollbar to be sho= wn. > Type something in the suggestionbox and show some choices. > Then click the scrollbar. > The selection choices are disappeared. > Only IE happens. Firefox 3.5, Safari and Chrome has no problem. (i.e. can= scroll the scroll bar and then select the choices from suggestionbox) > Scenerio: when the suggestion box is placed near the edge of the browser = viewport, user want to scroll the scrollbar to see the selection choices. S= ee attached screenshot. > I found a little workaround that works. In file /ui/suggestionbox/src/mai= n/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js > //IE only = > if (RichFaces.navigatorType() =3D=3D RichFaces.MSIE) { > Event.observe(this.element, "focusout", function(event) { > var elt =3D event.toElement; > if (elt.parentElement =3D=3D null) { //------------ added. Beca= use when click the browser scrollbar, the elt is > this.element.keepFocus =3D true; //-----------added > elt =3D undefined; //----------added > } //----------added > while (elt) { > if (elt =3D=3D this.update) { > this.element.keepFocus =3D true; > elt =3D undefined; > } else { > elt =3D elt.parentNode; > } > } > }.bindAsEventListener(this)); > } > A better solution should be, e.g. when displaying the suggestion, and if = the textbox is too close to the bottom of the viewport, the selection shoul= d snap to the top of the textbox i/o always snap to the bottom. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============3894621283040797417==--