oh ok. that is unfortunate. Obviously i am not good with CSS but i thought if you had wrong labels they would ignore it and maybe GWT can pick up those labels like "pos" even if it is not widespread. thanks!
On Jan 6, 10:50 am, "Isaac Truett" <[email protected]> wrote: > The JavaDoc isn't describing a CSS attribute, it's describing a method > parameter. And it tells you that the method parameter should be given > in the same units (such as "px" and "em" ) that you would use for CSS. > > You need to call setSplitPosition(String). You can't do the same thing with > CSS. > > On Tue, Jan 6, 2009 at 10:33 AM, shaselai <[email protected]> wrote: > >http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html > > "setSplitPosition > > > public final void setSplitPosition(java.lang.String pos) > > > Moves the position of the splitter. > > > Parameters: > > pos - the new size of the left region in CSS units (e.g. > > "10px", "1em") > > > " > > > it doesn't seem to work though but then why is it there for CSS in the > > first place unless i am doing something wrong? If setting the split > > position indeed doesn't work, in a programming perspective is it best > > to just have a class contain all the splitting positions of my panels? > > thanks! > > > On Jan 6, 10:11 am, "Isaac Truett" <[email protected]> wrote: > >> I can find no reference to "pos" being a valid CSS attribute. And I > >> don't see how it would work for a SplitPanel's splitter anyway, since > >> a SplitPanel is not a standed HTML element. In other words, you can't > >> do what you're trying to do with CSS. > > >> On Tue, Jan 6, 2009 at 9:09 AM, shaselai <[email protected]> wrote: > > >> > anyone? > > >> > On Jan 5, 2:17 pm, shaselai <[email protected]> wrote: > >> >> I am trying to set the verticalSplitPane's split position in CSS but > >> >> it doesn't seem to be working or maybe i am doing it wrong. > >> >> Java: > >> >> VerticalSplitPanel tempPanel = new VerticalSplitPanel(); > >> >> tempPanel.addStyleName("gwt-VerticalSplitPanel"); > >> >> tempPanel.setTopWidget(VerticalPanelForTopSection); > >> >> tempPanel.setBottomWidget(HorizontalPanelForBottomSection); > > >> >> CSS: > > >> >> .gwt-VerticalSplitPanel { width: 220px; > >> >> height: 270px; > >> >> padding-left: 15px; > >> >> padding-right: 15px; > >> >> pos: 200px; } > > >> >> i know the CSS gets called from running the program but the "pos: > >> >> 200px" doesn't get used at all. I tried > >> >> gwt-VerticalSplitPanel vsplitter { pos: 200px;} and gwt- > >> >> VerticalSplitPanel splitter { pos: 200px;} but didn't work either. > >> >> What am i doing wrong here? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
