Let me ask you something first: Why do you need a ScrollPanel if its content's dimension is set to "100%"? If I get it right you only want to have vertical scrolling?
Setting width to 100% actually should work fine. BUT: you have to consider that the vertical scroll bar will consume horizontal space. So even if the scroll panel's content's width is equal to the scroll panel's width as soon as the vertical scroll bar appears the horizontal one will as well... If you want to have only vertical scrolling your scroll panel's content width should be 100% minus the width of the vertical scroll bar. You could hook up a window resize listener and calculate the width, but I bet there are better solutions. Maybe someone else more experienced in GWT layout will answer too... Regards, Andreas On 15 Aug., 17:16, asianCoolz <[email protected]> wrote: > my layout is like below > > rootlayoutpanel < -- scrollPanel <--- htmlPanel > > but my x and y always show scrollPanel even though my htmlpanel is > smaller size > > i already set scrollPanel.setAlwaysShowScrollBars(false); > > i think this is because i set width 100% for htmlpanel, if i set > width 960px, then it showing properly without x horizontal bar. how to > properly fix this? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
