From jira-events at lists.jboss.org Wed Aug 8 14:02:07 2012 Content-Type: multipart/mixed; boundary="===============4271007030602440189==" MIME-Version: 1.0 From: Yuriy Pogorzhelskiy (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11104) rich:inputNumberSlider slider position is affected by css position attribute of containing element Date: Wed, 08 Aug 2012 14:02:06 -0400 Message-ID: <1146071547.40763.1344448926974.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 553675393.37538.1309962924649.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============4271007030602440189== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11104?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12710555#com= ment-12710555 ] = Yuriy Pogorzhelskiy commented on RF-11104: ------------------------------------------ Bug in inputNumberSlider.js It seems fix is as simple as changing next line in inputNumberSlider.js#__m= ousemoveHandler var value =3D this.range * (event.pageX - this.track.position().left - this= .handle.width() / 2) / (this.track.width() to: var value =3D this.range * (event.pageX - this.track.offset().left - this.h= andle.width() / 2) / (this.track.width() = > rich:inputNumberSlider slider position is affected by css position attrib= ute of containing element > -------------------------------------------------------------------------= ------------------------- > > Key: RF-11104 > URL: https://issues.jboss.org/browse/RF-11104 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-input > Affects Versions: 4.0.0.Final > Environment: Chrome/Firefox on Mac > Reporter: Kelly Davis > Fix For: 4.Future > > > The slider position is offset by the same amount that the the containing = element is offset from the left side of the page. Here is some example code: > {code:borderStyle=3Dsolid} > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:p=3D"http://pontiflex.com/pontiflex" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich"> > > > >

Working Version

>
> >
>

Relative Position Version

>
> >
>

Absolutly Positioned Version

>
>
> >
>
>
> > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============4271007030602440189==--