Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 932895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:44:35+00:00 2026-05-15T20:44:35+00:00

I have a horizontalpanel with 3 verticalpanels inside. In the verticalpanels there are custom

  • 0

I have a horizontalpanel with 3 verticalpanels inside.
In the verticalpanels there are custom widgets

I need all verticalpanels has the same height (even if they have different number of widgets inside) and a button in the empty space.

So, I put all panels height = 100% and the buttons height = 100%.

The problem is that the verticalpanel cells height are bigger than my widgets, so it left a space between all verticalpanels widgets.

Here is an example

How can I adjust the verticalpanels cells height to my widgets height. My widgets are not images like in the example, so i can’t know the widgets height.

I have a lot of time in this problem, anyidea will help
Thx!!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:44:36+00:00Added an answer on May 15, 2026 at 8:44 pm

    Haven’t tried it, but this should work or at least give you something to start:

    VerticalPanel.setCellHeight(yourWidget, Integer.toString(yourWidget.getElement().getOffsetHeight())+"px");
    

    What it does:
    setCellHeight() sets the height of the cell the widget is in you pass to the function.
    The second parameter in the function is the height of that cell. This gets a little tricky because you don’t know the height.
    With the getElement() you get the Element of that widget in the DOM of the browser, on that element you can call getOffsetHeight().
    getOffsetHeight() returns an integer so you need to cast it into a String and concatenate “px” to it so the browser knows it’s pixel and not em or something like that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have you ever seen any of there error messages? -- SQL Server 2000 Could
Is there a way to set padding on GWT's HorizontalPanel ? I wanted to
Have a look at the menus on this page: http://www.pieterdedecker.be/labs/vspwpg/?page_id=96 They look okay in
Have a build process that can't be edited and need to pack another war
i have a input tag which is non editable, but some times i need
Have same challenge as this guy: How to copy dependencies to gae war/WEB-INF/lib Applying
Have been searching all over the internet but struggling to find my answer to
Have the following code. The height is variable so the height of the floating
Have a bunch of classes which I need to do serialize and deserialize from/to
Have just started using Google Chrome , and noticed in parts of our site,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.