Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
TabPanel N-S alignment - Problem and workaround
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ianbambury@gmail.com  
View profile  
(1 user)  More options Aug 14 2006, 11:35 am
From: "ianbamb...@gmail.com" <ianbamb...@gmail.com>
Date: Mon, 14 Aug 2006 15:35:55 -0000
Local: Mon, Aug 14 2006 11:35 am
Subject: TabPanel N-S alignment - Problem and workaround
Seen this posted a couple of times but no resolution. Here's the
problem and a pretty duff (but useful) solution. Any better way would
be appreciated, but I've only been playing with GWT for 2 days and
never used Java before.

The problem is that the compiler ends up proiducing HTML like

<TABLE class=gwt-TabPanel cellSpacing=0 cellPadding=0><TBODY>
<TR>
<TD style="VERTICAL-ALIGN: top" align=left>

--Tab Stuff Here--

</TD></TR>
<TR>
<TD style="VERTICAL-ALIGN: top" align=left>
<DIV class=gwt-TabPanelBottom>

--Deck Stuff Here--

</DIV></TD></TR></TBODY></TABLE>

the table rows are spaced automatically hence the gap above the widget.

to fix it, add code to set the height of the top TD element to zero

        private TabPanel tp = new TabPanel();
        Element el = tp.getElement();
        el = DOM.getChild(el,0);
        el = DOM.getChild(el,0);
        el = DOM.getChild(el,0);
        DOM.setStyleAttribute(el,"height","0");

there has to be a better way of doing it (apart from fixing GWT, of
course)

Ian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Konstantin Scheglov  
View profile  
 More options Aug 14 2006, 12:06 pm
From: "Konstantin Scheglov" <Konstantin.Scheg...@gmail.com>
Date: Mon, 14 Aug 2006 16:06:10 -0000
Local: Mon, Aug 14 2006 12:06 pm
Subject: Re: TabPanel N-S alignment - Problem and workaround

> there has to be a better way of doing it (apart from fixing GWT, of
> course)

  I think that it is better to fix GWT. I am going to package in
product GWT with my fixes. At least this is more perspective than
infinite waiting for responce from GWT team.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Smeuky  
View profile  
 More options Aug 15 2006, 4:44 am
From: "Smeuky" <olivier.bru...@gmail.com>
Date: Tue, 15 Aug 2006 01:44:16 -0700
Local: Tues, Aug 15 2006 4:44 am
Subject: Re: TabPanel N-S alignment - Problem and workaround
Yep, VERY annoying bug.

Hopefully, your fix works for IE but unfortunately it doesn't for
firefox :(


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Bambury  
View profile  
 More options Aug 15 2006, 6:40 am
From: "Ian Bambury" <ianbamb...@gmail.com>
Date: Tue, 15 Aug 2006 11:40:05 +0100
Local: Tues, Aug 15 2006 6:40 am
Subject: Re: TabPanel N-S alignment - Problem and workaround

Oops. Firefox has a different concept of zero from IE - try setting the
height to 1px, that works in Firefox

On 15/08/06, Smeuky <olivier.bru...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google