Re: TabLayoutPanel does not listen to width

2010-12-02 Thread Nirmal
When you nest a LayoutPanel within something NON-LayoutPanel (like
Flowpanel); you need to explicitly set both - the height & width of
the LayoutPanel. Read "Using a LayoutPanel without RootLayoutPanel" of
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html


Regards,
Nirmal

On Dec 2, 7:10 pm, Jeff Larsen  wrote:
> >I don't understand your sentence, can you be more specific? I want to
>
> set the size of the flowpanel, that's allright.
>
> LayoutPanels want to be nested inside LayoutPanels. What if instead of
> using a FlowPanel you used a LayoutPanel for the main uibinder widget.
>
> The way I've ended up debugging some of these weird issues with
> LayoutPanels is by cracking open Firebug and hacking away at styles
> until things start to look right.
>
> On Dec 2, 2:38 am, Baloe  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Thanks for your suggestions. Setting the width on the flowpanel
> > doesn't work. I cannot set the width of it's parent, because there is
> > no parent (see uibinder file).
>
> > >Anything LayoutPanel wants to be in another layout panel.
>
> > I don't understand your sentence, can you be more specific? I want to
> > set the size of the flowpanel, that's allright.
>
> > We are currently looking into smartgwt, because it seems that over
> > there most things actually work.
>
> > Thanks all!
> > NielsBaloe
>
> > On 1 dec, 17:48, Jeff Larsen  wrote:
>
> > > Anything LayoutPanel wants to be in another layout panel.
>
> > > if you don't want to set the size of FlowPanel, put everything inside
> > > a LayoutPanel then make sure that LayoutPanel is attached to
> > > RootLayoutPanel.
>
> > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > On Dec 1, 9:30 am, Paul Stockley  wrote:
>
> > > > Try setting the width on the flowpanel. If this doesn't work, set the
> > > > width on its parent.
>
> > > > On Dec 1, 5:51 am, Baloe  wrote:
>
> > > > > Hi,
>
> > > > > Thanks for your suggestion. However, most widgets don't listen to
> > > > > their method-calls.
>
> > > > > Regarding the uibinder example, I have to put everything in a
> > > > > flowpanel, because uibinder expects to find only one (main) widget.
> > > > > So, we are basicly putting everything in a flowpanel without any
> > > > > layout-based reason.
>
> > > > > Best,
> > > > > Niels
>
> > > > > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > > > > Hi,
>
> > > > > > I have made very good layouts using the gwt layout system. I would 
> > > > > > recommend
> > > > > > to have a look at :
>
> > > > > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > > > > Regarding to your UiBinder example, don't put the TabLayoutPanel 
> > > > > > inside a
> > > > > > FlowPanel.
>
> > > > > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > > > > Hi all,
>
> > > > > > > I'm using a tabLayoutPanel with three tabs. However, the total 
> > > > > > > width
> > > > > > > is now dynamicly created by the width of the content of the 
> > > > > > > current
> > > > > > > tab. But, my first and second tabs are not that wide, so the 
> > > > > > > third tab
> > > > > > > always hangs a bit outside of the tab. How can I set the width of 
> > > > > > > the
> > > > > > > TabLayoutPanel?
>
> > > > > > > I tried several things, but I can't seem to set the width.
> > > > > > > tabLayoutPanel.setWidth("700px");
> > > > > > > tabLayoutPanel.setSize("700px", "500px");
> > > > > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > > > > with and without tabLayoutPanel.onResize();
>
> > > > > > > uibinder file:
> > > > > > >        
> > > > > > >                 > > > > > >                        barHeight="50" height="600px">
> > > > > > >                
> > > > > > >                 > > > > > > />
> > > > > > >        
>
> > > > > > > I'm adding the tabs in java code after binding.
> > > > > > >        tabGeneral = new FlexTable();
> > > > > > >        .
> > > > > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > > > > I really like GWT a lot, but I must say that the ui pieces are 
> > > > > > > really
> > > > > > > quite bad. You can't use certain widgets because it's standard 
> > > > > > > mode
> > > > > > > (or not) without warnings, setting sizes and other basic stuff 
> > > > > > > doesn't
> > > > > > > always work, examples often work in java code but not in the 
> > > > > > > uibinder,
> > > > > > > etc. It would be nice if the widgets themselves were better. It 
> > > > > > > feels
> > > > > > > like temporary broken, or just beta sourcecode. If you can make 
> > > > > > > such a
> > > > > > > good java2javascript compiler, why not create proper widgets as 
> > > > > > > well?
>
> > > > > > > Thanks!
> > > > > > > Niels
>
> > > > > > > --
> > > > > > > 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...@googlegro

Re: TabLayoutPanel does not listen to width

2010-12-02 Thread Jeff Larsen

>I don't understand your sentence, can you be more specific? I want to
set the size of the flowpanel, that's allright.

LayoutPanels want to be nested inside LayoutPanels. What if instead of
using a FlowPanel you used a LayoutPanel for the main uibinder widget.

The way I've ended up debugging some of these weird issues with
LayoutPanels is by cracking open Firebug and hacking away at styles
until things start to look right.

On Dec 2, 2:38 am, Baloe  wrote:
> Hi,
>
> Thanks for your suggestions. Setting the width on the flowpanel
> doesn't work. I cannot set the width of it's parent, because there is
> no parent (see uibinder file).
>
> >Anything LayoutPanel wants to be in another layout panel.
>
> I don't understand your sentence, can you be more specific? I want to
> set the size of the flowpanel, that's allright.
>
> We are currently looking into smartgwt, because it seems that over
> there most things actually work.
>
> Thanks all!
> NielsBaloe
>
> On 1 dec, 17:48, Jeff Larsen  wrote:
>
>
>
>
>
>
>
> > Anything LayoutPanel wants to be in another layout panel.
>
> > if you don't want to set the size of FlowPanel, put everything inside
> > a LayoutPanel then make sure that LayoutPanel is attached to
> > RootLayoutPanel.
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > On Dec 1, 9:30 am, Paul Stockley  wrote:
>
> > > Try setting the width on the flowpanel. If this doesn't work, set the
> > > width on its parent.
>
> > > On Dec 1, 5:51 am, Baloe  wrote:
>
> > > > Hi,
>
> > > > Thanks for your suggestion. However, most widgets don't listen to
> > > > their method-calls.
>
> > > > Regarding the uibinder example, I have to put everything in a
> > > > flowpanel, because uibinder expects to find only one (main) widget.
> > > > So, we are basicly putting everything in a flowpanel without any
> > > > layout-based reason.
>
> > > > Best,
> > > > Niels
>
> > > > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > > > Hi,
>
> > > > > I have made very good layouts using the gwt layout system. I would 
> > > > > recommend
> > > > > to have a look at :
>
> > > > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > > > Regarding to your UiBinder example, don't put the TabLayoutPanel 
> > > > > inside a
> > > > > FlowPanel.
>
> > > > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > > > Hi all,
>
> > > > > > I'm using a tabLayoutPanel with three tabs. However, the total width
> > > > > > is now dynamicly created by the width of the content of the current
> > > > > > tab. But, my first and second tabs are not that wide, so the third 
> > > > > > tab
> > > > > > always hangs a bit outside of the tab. How can I set the width of 
> > > > > > the
> > > > > > TabLayoutPanel?
>
> > > > > > I tried several things, but I can't seem to set the width.
> > > > > > tabLayoutPanel.setWidth("700px");
> > > > > > tabLayoutPanel.setSize("700px", "500px");
> > > > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > > > with and without tabLayoutPanel.onResize();
>
> > > > > > uibinder file:
> > > > > >        
> > > > > >                 > > > > >                        barHeight="50" height="600px">
> > > > > >                
> > > > > >                
> > > > > >        
>
> > > > > > I'm adding the tabs in java code after binding.
> > > > > >        tabGeneral = new FlexTable();
> > > > > >        .
> > > > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > > > I really like GWT a lot, but I must say that the ui pieces are 
> > > > > > really
> > > > > > quite bad. You can't use certain widgets because it's standard mode
> > > > > > (or not) without warnings, setting sizes and other basic stuff 
> > > > > > doesn't
> > > > > > always work, examples often work in java code but not in the 
> > > > > > uibinder,
> > > > > > etc. It would be nice if the widgets themselves were better. It 
> > > > > > feels
> > > > > > like temporary broken, or just beta sourcecode. If you can make 
> > > > > > such a
> > > > > > good java2javascript compiler, why not create proper widgets as 
> > > > > > well?
>
> > > > > > Thanks!
> > > > > > Niels
>
> > > > > > --
> > > > > > 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 > > > > >  cr...@googlegroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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 op

Re: TabLayoutPanel does not listen to width

2010-12-02 Thread Baloe
Hi,

Thanks for your suggestions. Setting the width on the flowpanel
doesn't work. I cannot set the width of it's parent, because there is
no parent (see uibinder file).

>Anything LayoutPanel wants to be in another layout panel.

I don't understand your sentence, can you be more specific? I want to
set the size of the flowpanel, that's allright.

We are currently looking into smartgwt, because it seems that over
there most things actually work.

Thanks all!
NielsBaloe


On 1 dec, 17:48, Jeff Larsen  wrote:
> Anything LayoutPanel wants to be in another layout panel.
>
> if you don't want to set the size of FlowPanel, put everything inside
> a LayoutPanel then make sure that LayoutPanel is attached to
> RootLayoutPanel.
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> On Dec 1, 9:30 am, Paul Stockley  wrote:
>
> > Try setting the width on the flowpanel. If this doesn't work, set the
> > width on its parent.
>
> > On Dec 1, 5:51 am, Baloe  wrote:
>
> > > Hi,
>
> > > Thanks for your suggestion. However, most widgets don't listen to
> > > their method-calls.
>
> > > Regarding the uibinder example, I have to put everything in a
> > > flowpanel, because uibinder expects to find only one (main) widget.
> > > So, we are basicly putting everything in a flowpanel without any
> > > layout-based reason.
>
> > > Best,
> > > Niels
>
> > > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > > Hi,
>
> > > > I have made very good layouts using the gwt layout system. I would 
> > > > recommend
> > > > to have a look at :
>
> > > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > > Regarding to your UiBinder example, don't put the TabLayoutPanel inside 
> > > > a
> > > > FlowPanel.
>
> > > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > > Hi all,
>
> > > > > I'm using a tabLayoutPanel with three tabs. However, the total width
> > > > > is now dynamicly created by the width of the content of the current
> > > > > tab. But, my first and second tabs are not that wide, so the third tab
> > > > > always hangs a bit outside of the tab. How can I set the width of the
> > > > > TabLayoutPanel?
>
> > > > > I tried several things, but I can't seem to set the width.
> > > > > tabLayoutPanel.setWidth("700px");
> > > > > tabLayoutPanel.setSize("700px", "500px");
> > > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > > with and without tabLayoutPanel.onResize();
>
> > > > > uibinder file:
> > > > >        
> > > > >                 > > > >                        barHeight="50" height="600px">
> > > > >                
> > > > >                
> > > > >        
>
> > > > > I'm adding the tabs in java code after binding.
> > > > >        tabGeneral = new FlexTable();
> > > > >        .
> > > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > > I really like GWT a lot, but I must say that the ui pieces are really
> > > > > quite bad. You can't use certain widgets because it's standard mode
> > > > > (or not) without warnings, setting sizes and other basic stuff doesn't
> > > > > always work, examples often work in java code but not in the uibinder,
> > > > > etc. It would be nice if the widgets themselves were better. It feels
> > > > > like temporary broken, or just beta sourcecode. If you can make such a
> > > > > good java2javascript compiler, why not create proper widgets as well?
>
> > > > > Thanks!
> > > > > Niels
>
> > > > > --
> > > > > 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 > > > >  cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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: TabLayoutPanel does not listen to width

2010-12-01 Thread Jeff Larsen
Anything LayoutPanel wants to be in another layout panel.

if you don't want to set the size of FlowPanel, put everything inside
a LayoutPanel then make sure that LayoutPanel is attached to
RootLayoutPanel.

http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html


On Dec 1, 9:30 am, Paul Stockley  wrote:
> Try setting the width on the flowpanel. If this doesn't work, set the
> width on its parent.
>
> On Dec 1, 5:51 am, Baloe  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Thanks for your suggestion. However, most widgets don't listen to
> > their method-calls.
>
> > Regarding the uibinder example, I have to put everything in a
> > flowpanel, because uibinder expects to find only one (main) widget.
> > So, we are basicly putting everything in a flowpanel without any
> > layout-based reason.
>
> > Best,
> > Niels
>
> > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > Hi,
>
> > > I have made very good layouts using the gwt layout system. I would 
> > > recommend
> > > to have a look at :
>
> > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > Regarding to your UiBinder example, don't put the TabLayoutPanel inside a
> > > FlowPanel.
>
> > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > Hi all,
>
> > > > I'm using a tabLayoutPanel with three tabs. However, the total width
> > > > is now dynamicly created by the width of the content of the current
> > > > tab. But, my first and second tabs are not that wide, so the third tab
> > > > always hangs a bit outside of the tab. How can I set the width of the
> > > > TabLayoutPanel?
>
> > > > I tried several things, but I can't seem to set the width.
> > > > tabLayoutPanel.setWidth("700px");
> > > > tabLayoutPanel.setSize("700px", "500px");
> > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > with and without tabLayoutPanel.onResize();
>
> > > > uibinder file:
> > > >        
> > > >                 > > >                        barHeight="50" height="600px">
> > > >                
> > > >                
> > > >        
>
> > > > I'm adding the tabs in java code after binding.
> > > >        tabGeneral = new FlexTable();
> > > >        .
> > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > I really like GWT a lot, but I must say that the ui pieces are really
> > > > quite bad. You can't use certain widgets because it's standard mode
> > > > (or not) without warnings, setting sizes and other basic stuff doesn't
> > > > always work, examples often work in java code but not in the uibinder,
> > > > etc. It would be nice if the widgets themselves were better. It feels
> > > > like temporary broken, or just beta sourcecode. If you can make such a
> > > > good java2javascript compiler, why not create proper widgets as well?
>
> > > > Thanks!
> > > > Niels
>
> > > > --
> > > > 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 > > >  cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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: TabLayoutPanel does not listen to width

2010-12-01 Thread Paul Stockley
Try setting the width on the flowpanel. If this doesn't work, set the
width on its parent.

On Dec 1, 5:51 am, Baloe  wrote:
> Hi,
>
> Thanks for your suggestion. However, most widgets don't listen to
> their method-calls.
>
> Regarding the uibinder example, I have to put everything in a
> flowpanel, because uibinder expects to find only one (main) widget.
> So, we are basicly putting everything in a flowpanel without any
> layout-based reason.
>
> Best,
> Niels
>
> On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have made very good layouts using the gwt layout system. I would recommend
> > to have a look at :
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > Regarding to your UiBinder example, don't put the TabLayoutPanel inside a
> > FlowPanel.
>
> > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > Hi all,
>
> > > I'm using a tabLayoutPanel with three tabs. However, the total width
> > > is now dynamicly created by the width of the content of the current
> > > tab. But, my first and second tabs are not that wide, so the third tab
> > > always hangs a bit outside of the tab. How can I set the width of the
> > > TabLayoutPanel?
>
> > > I tried several things, but I can't seem to set the width.
> > > tabLayoutPanel.setWidth("700px");
> > > tabLayoutPanel.setSize("700px", "500px");
> > > tabLayoutPanel.setPixelSize(700, 500);
> > > with and without tabLayoutPanel.onResize();
>
> > > uibinder file:
> > >        
> > >                 > >                        barHeight="50" height="600px">
> > >                
> > >                
> > >        
>
> > > I'm adding the tabs in java code after binding.
> > >        tabGeneral = new FlexTable();
> > >        .
> > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > I really like GWT a lot, but I must say that the ui pieces are really
> > > quite bad. You can't use certain widgets because it's standard mode
> > > (or not) without warnings, setting sizes and other basic stuff doesn't
> > > always work, examples often work in java code but not in the uibinder,
> > > etc. It would be nice if the widgets themselves were better. It feels
> > > like temporary broken, or just beta sourcecode. If you can make such a
> > > good java2javascript compiler, why not create proper widgets as well?
>
> > > Thanks!
> > > Niels
>
> > > --
> > > 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 > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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: TabLayoutPanel does not listen to width

2010-12-01 Thread Baloe
Hi,

Thanks for your suggestion. However, most widgets don't listen to
their method-calls.

Regarding the uibinder example, I have to put everything in a
flowpanel, because uibinder expects to find only one (main) widget.
So, we are basicly putting everything in a flowpanel without any
layout-based reason.

Best,
Niels


On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
> Hi,
>
> I have made very good layouts using the gwt layout system. I would recommend
> to have a look at :
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> Regarding to your UiBinder example, don't put the TabLayoutPanel inside a
> FlowPanel.
>
> On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > Hi all,
>
> > I'm using a tabLayoutPanel with three tabs. However, the total width
> > is now dynamicly created by the width of the content of the current
> > tab. But, my first and second tabs are not that wide, so the third tab
> > always hangs a bit outside of the tab. How can I set the width of the
> > TabLayoutPanel?
>
> > I tried several things, but I can't seem to set the width.
> > tabLayoutPanel.setWidth("700px");
> > tabLayoutPanel.setSize("700px", "500px");
> > tabLayoutPanel.setPixelSize(700, 500);
> > with and without tabLayoutPanel.onResize();
>
> > uibinder file:
> >        
> >                 >                        barHeight="50" height="600px">
> >                
> >                
> >        
>
> > I'm adding the tabs in java code after binding.
> >        tabGeneral = new FlexTable();
> >        .
> >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > I really like GWT a lot, but I must say that the ui pieces are really
> > quite bad. You can't use certain widgets because it's standard mode
> > (or not) without warnings, setting sizes and other basic stuff doesn't
> > always work, examples often work in java code but not in the uibinder,
> > etc. It would be nice if the widgets themselves were better. It feels
> > like temporary broken, or just beta sourcecode. If you can make such a
> > good java2javascript compiler, why not create proper widgets as well?
>
> > Thanks!
> > Niels
>
> > --
> > 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.

-- 
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: TabLayoutPanel does not listen to width

2010-11-30 Thread Alejandro D. Garin
Hi,

I have made very good layouts using the gwt layout system. I would recommend
to have a look at :

http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html

Regarding to your UiBinder example, don't put the TabLayoutPanel inside a
FlowPanel.

On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:

> Hi all,
>
> I'm using a tabLayoutPanel with three tabs. However, the total width
> is now dynamicly created by the width of the content of the current
> tab. But, my first and second tabs are not that wide, so the third tab
> always hangs a bit outside of the tab. How can I set the width of the
> TabLayoutPanel?
>
> I tried several things, but I can't seem to set the width.
> tabLayoutPanel.setWidth("700px");
> tabLayoutPanel.setSize("700px", "500px");
> tabLayoutPanel.setPixelSize(700, 500);
> with and without tabLayoutPanel.onResize();
>
>
> uibinder file:
>
>barHeight="50" height="600px">
>
>
>
>
> I'm adding the tabs in java code after binding.
>tabGeneral = new FlexTable();
>.
>tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
>
> I really like GWT a lot, but I must say that the ui pieces are really
> quite bad. You can't use certain widgets because it's standard mode
> (or not) without warnings, setting sizes and other basic stuff doesn't
> always work, examples often work in java code but not in the uibinder,
> etc. It would be nice if the widgets themselves were better. It feels
> like temporary broken, or just beta sourcecode. If you can make such a
> good java2javascript compiler, why not create proper widgets as well?
>
> Thanks!
> Niels
>
>
>
> --
> 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.
>
>

-- 
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: TabLayoutPanel does not listen to width

2010-11-30 Thread Greg Dougherty
So, how do we use the Closure widgets w/ a GWT app.

Because if I wanted to be writing JavaScript, I wouldn't be using
GWT.  No?

Greg

On Nov 30, 6:25 am, Matt H  wrote:
> Yes, the UI widgets are all terrible. Google Closure has much better
> widgets.
>
> On Nov 30, 10:10 am, Baloe  wrote:
>
> > Hi all,
>
> > I'm using a tabLayoutPanel with three tabs. However, the total width
> > is now dynamicly created by the width of the content of the current
> > tab. But, my first and second tabs are not that wide, so the third tab
> > always hangs a bit outside of the tab. How can I set the width of the
> > TabLayoutPanel?
>
> > I tried several things, but I can't seem to set the width.
> > tabLayoutPanel.setWidth("700px");
> > tabLayoutPanel.setSize("700px", "500px");
> > tabLayoutPanel.setPixelSize(700, 500);
> > with and without tabLayoutPanel.onResize();
>
> > uibinder file:
> >         
> >                  >                         barHeight="50" height="600px">
> >                 
> >                 
> >         
>
> > I'm adding the tabs in java code after binding.
> >         tabGeneral = new FlexTable();
> >         .
> >         tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > I really like GWT a lot, but I must say that the ui pieces are really
> > quite bad. You can't use certain widgets because it's standard mode
> > (or not) without warnings, setting sizes and other basic stuff doesn't
> > always work, examples often work in java code but not in the uibinder,
> > etc. It would be nice if the widgets themselves were better. It feels
> > like temporary broken, or just beta sourcecode. If you can make such a
> > good java2javascript compiler, why not create proper widgets as well?
>
> > Thanks!
> > Niels

-- 
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: TabLayoutPanel does not listen to width

2010-11-30 Thread Matt H
Yes, the UI widgets are all terrible. Google Closure has much better
widgets.

On Nov 30, 10:10 am, Baloe  wrote:
> Hi all,
>
> I'm using a tabLayoutPanel with three tabs. However, the total width
> is now dynamicly created by the width of the content of the current
> tab. But, my first and second tabs are not that wide, so the third tab
> always hangs a bit outside of the tab. How can I set the width of the
> TabLayoutPanel?
>
> I tried several things, but I can't seem to set the width.
> tabLayoutPanel.setWidth("700px");
> tabLayoutPanel.setSize("700px", "500px");
> tabLayoutPanel.setPixelSize(700, 500);
> with and without tabLayoutPanel.onResize();
>
> uibinder file:
>         
>                                          barHeight="50" height="600px">
>                 
>                 
>         
>
> I'm adding the tabs in java code after binding.
>         tabGeneral = new FlexTable();
>         .
>         tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> I really like GWT a lot, but I must say that the ui pieces are really
> quite bad. You can't use certain widgets because it's standard mode
> (or not) without warnings, setting sizes and other basic stuff doesn't
> always work, examples often work in java code but not in the uibinder,
> etc. It would be nice if the widgets themselves were better. It feels
> like temporary broken, or just beta sourcecode. If you can make such a
> good java2javascript compiler, why not create proper widgets as well?
>
> Thanks!
> Niels

-- 
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.



TabLayoutPanel does not listen to width

2010-11-30 Thread Baloe
Hi all,

I'm using a tabLayoutPanel with three tabs. However, the total width
is now dynamicly created by the width of the content of the current
tab. But, my first and second tabs are not that wide, so the third tab
always hangs a bit outside of the tab. How can I set the width of the
TabLayoutPanel?

I tried several things, but I can't seem to set the width.
tabLayoutPanel.setWidth("700px");
tabLayoutPanel.setSize("700px", "500px");
tabLayoutPanel.setPixelSize(700, 500);
with and without tabLayoutPanel.onResize();


uibinder file:






I'm adding the tabs in java code after binding.
tabGeneral = new FlexTable();
.
tabLayoutPanel.add(tabGeneral, i18nGeneral.name());


I really like GWT a lot, but I must say that the ui pieces are really
quite bad. You can't use certain widgets because it's standard mode
(or not) without warnings, setting sizes and other basic stuff doesn't
always work, examples often work in java code but not in the uibinder,
etc. It would be nice if the widgets themselves were better. It feels
like temporary broken, or just beta sourcecode. If you can make such a
good java2javascript compiler, why not create proper widgets as well?

Thanks!
Niels



-- 
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.