Re: GWT DockLayoutPanel vs CSS Float
i found the solution here: set the height to 100% ... you can use unit='EM' if you want to https://groups.google.com/group/google-web-toolkit/browse_thread/thread/29d35978188355af/787ccd1da9f3dfc5?pli=1 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DockLayoutPanel vs CSS Float
Ok I see.. we don't use GWT 2.1 MVP so we have used a FlowPanel. I just changed our application to use SimplePanel instead of FlowPanel and it still works with a nested DockLayoutPanel (tested in Safari). On 15 Nov., 23:26, zixzigma wrote: > Thank you Jack. > > this is from my application level DockLayoutPanel > > > > > and > is where i want to insert other DockLayoutPanels. > > i think the problem is DockLayoutPanel is a ComplexPanel > and cant be inserted in a SimplePanel slot ? > > you might be wondering why i am not using other panels instead of > SimplePanel. > the thing is with GWT 2.1 MVP, for Activities to work, you have to use > a panel that AcceptsOneWidget ! > > I am going to experiment with it more. > > Thank you for sharing your experience. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DockLayoutPanel vs CSS Float
Thank you Jack. this is from my application level DockLayoutPanel and is where i want to insert other DockLayoutPanels. i think the problem is DockLayoutPanel is a ComplexPanel and cant be inserted in a SimplePanel slot ? you might be wondering why i am not using other panels instead of SimplePanel. the thing is with GWT 2.1 MVP, for Activities to work, you have to use a panel that AcceptsOneWidget ! I am going to experiment with it more. Thank you for sharing your experience. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DockLayoutPanel vs CSS Float
Hmm we exactly do this and it works. We have an application DockLayoutPanel with header (north), side menu (left), footer (south) and a content area (center). In this center content area we often put another DockLayoutPanel which may have a north element containing a toolbar, a list of selectable items in the left and its own content area in its center. Works like expected in all browsers. Do you have any problems with using hierarchical DockLayoutPanels? On 15 Nov., 21:18, zixzigma wrote: > Thank You. > You are correct, the results wont be necessarily the same, only > "similar". > > FlowPanel/SimplePanel end up as "div" elements. > the same is true with DockLayoutPanel, at the end they translate to > "div" elements. > so it is possible to apply CSS styles to achieve "Similar" results. > > To put this in perspective, here is what i am trying to achieve: > > MyViewUiBinder: > > > .left { float: left;} > .right {float: right;} > > > > > > > > > > > > > > > > > > This could have been a DockLayoutPanel, however I am using a top > level DockLayoutPanel already for my overall application layout, > and this View i am talking about here with all the left/right/top > panels, are actually in the slot of application main > DockLayoutPanel. > > i tried , but i think its either deprecated, since it > result in "table/tr/td" elements, and is not considered a good > practice. > > i am not sure if this is the best way to do it ? > > what i'm trying to achieve is to programmatically (through Presenters) > add > "views" in the g:center part of application DockLayoutPanel. and those > Views that are inserted have their own top/left/right panels. > > Thank You -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DockLayoutPanel vs CSS Float
Thank You. You are correct, the results wont be necessarily the same, only "similar". FlowPanel/SimplePanel end up as "div" elements. the same is true with DockLayoutPanel, at the end they translate to "div" elements. so it is possible to apply CSS styles to achieve "Similar" results. To put this in perspective, here is what i am trying to achieve: MyViewUiBinder: .left { float: left;} .right {float: right;} This could have been a DockLayoutPanel, however I am using a top level DockLayoutPanel already for my overall application layout, and this View i am talking about here with all the left/right/top panels, are actually in the slot of application main DockLayoutPanel. i tried , but i think its either deprecated, since it result in "table/tr/td" elements, and is not considered a good practice. i am not sure if this is the best way to do it ? what i'm trying to achieve is to programmatically (through Presenters) add "views" in the g:center part of application DockLayoutPanel. and those Views that are inserted have their own top/left/right panels. Thank You -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DockLayoutPanel vs CSS Float
Hi, I don't think you get the same results. You get similar results. It depends what exactly you need. Probably the easiest is two try both and watch the different behavior in the "extremes" Stefan Bachert http://gwtworld.de On 14 Nov., 21:21, zixzigma wrote: > Hello Everyone, > > Is it acceptable that at times we make use of > CSS float:left, and float:right, to achieve the same result that > could otherwise be achieved with GWT DockLayoutPanel ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT DockLayoutPanel vs CSS Float
Hello Everyone, Is it acceptable that at times we make use of CSS float:left, and float:right, to achieve the same result that could otherwise be achieved with GWT DockLayoutPanel ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.