On a GWT panel, can I enforce a minimum height?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A GWT Panel is just a
<div>element. You can use the CSSmin-heightproperty to enforce a minimum height for thatdiv.Just use
panel.addStyleName("foo");on the panel you want to control, and in your CSS, use.foo { min-height: 100px; }or whatever you want it to be.Or if you’re using UIBinder: