Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting table cell widget height=100% is ignored on IE #53

Closed
dankurka opened this issue Jun 10, 2015 · 5 comments
Closed

Setting table cell widget height=100% is ignored on IE #53

dankurka opened this issue Jun 10, 2015 · 5 comments

Comments

@dankurka
Copy link
Member

Originally reported on Google Code with ID 44

GWT Release:
1.1.10
Browser or OS version (if applicable):
IE
Detailed description:
On IE, cells in a table must be set to 100% height before IE will respect
the widget's directive to be set to 100% height.

Example code showing the problem (strongly preferred):
import com.google.gwt.core.client.EntryPoint; 
import com.google.gwt.user.client.ui.Button; 
import com.google.gwt.user.client.ui.FlexTable; 
import com.google.gwt.user.client.ui.RootPanel; 
/** 
 * Entry point classes define <code>onModuleLoad()</code>. 
 */ 
public class ImageViewer implements EntryPoint { 
        public void onModuleLoad() { 
                final RootPanel rootPanel = RootPanel.get(); 
                { 
                        final FlexTable flexTable = new FlexTable(); 
                        rootPanel.add(flexTable, 50, 20); 
                        flexTable.setCellSpacing(10); 
                        flexTable.setBorderWidth(5); 
                        { 
                                final Button button = new Button(); 
                                flexTable.setWidget(0, 0, button); 
                                flexTable.getCellFormatter().setWidth(0, 0,
"156"); 
                                button.setText("Button 0-0"); 
                        } 
                        { 
                                final Button button = new Button(); 
                                flexTable.setWidget(1, 0, button); 
                                button.setText("Button 1-0"); 
                        } 
                        { 
                                final Button button = new Button(); 
                                flexTable.setWidget(0, 1, button); 
                                button.setHeight("100%"); 

flexTable.getFlexCellFormatter().setRowSpan(0, 1, 2); 
                                button.setText("Button 0-1"); 
                        } 
                } 
        } 



Workaround if you have one:
set the cell's height first
Links to the relevant discussion group topics (optional):
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/98b50e6faaea8f16

Reported by gwt.team.ecc on 2006-09-20 11:01:29

@dankurka
Copy link
Member Author

Reported by gwt.team.ecc on 2006-09-20 13:48:19

@dankurka
Copy link
Member Author

Is it worth the overhead of setting a predefined style/setHeight for each cell in
order to fix this?

Reported by gwt.team.ecc on 2006-10-04 15:30:31

@dankurka
Copy link
Member Author

Reported by gwt.team.morrildl on 2007-02-01 14:26:06

  • Labels added: Category-UI

@dankurka
Copy link
Member Author

Should come up again if it matters w.r.t. standards mode.

Reported by bruce+personal@google.com on 2008-04-08 15:22:00

  • Status changed: KnownQuirk

@dankurka
Copy link
Member Author


Reported by sumitchandel+legacy@google.com on 2008-04-28 22:59:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant