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 9272075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:46:49+00:00 2026-06-18T15:46:49+00:00

I have a layoutPanel with some buttons on it and a second layout panel

  • 0

I have a layoutPanel with some buttons on it and a second layout panel with some more buttons on it. The two layout panels partially overlap in position. I want to be able to hide one and have the other visible such that the visible one’s elements/widgets are clickable. How can I do this efficiently? This page is expected to be viewed on a mobile device, so efficiency is important with a significant number of such buttons/panels.

First I attempted using the built in setVisible() on the panel that should be hidden. Unfortunately, this just hides the top panel. While you no longer activate the buttons on the top panel, the top panel still prevents you from clicking the bottom panel.

Next, I tried to use the z-index using widget.getElement().getStyle().setZIndex(indexInt) along with the setVisible(false) on the panel. Here only the panel has its z-index changed, but not the buttons. So again, the bottom panel is blocked from being clicked. I would pass the z-index settings down the the children, but this results in many z-index recalculations, and I’d like to avoid any performance hit.

Lastly, I considered resizing/moving the panel. To get it out of the way. The problem here is that you then have to have the panel remember where it was or what size it was. Also, simply resizing or moving the panel can have unseen consequences.

While the last two methods can work, I’m guessing there is a more efficient and elegant approach. Any suggestions? Thank you much!

  • 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-06-18T15:46:50+00:00Added an answer on June 18, 2026 at 3:46 pm

    Assuming a LayoutPanel, you should use setWidgetVisible to hide the widget and its layer.

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

Sidebar

Related Questions

Lets say I have a layout panel having multiple textboxes. Now I want to
I have built a semi-transparent custom layout panel in WPF by setting the Opacity
I have a panel of labels, buttons and image that I wish to put
I'm trying to create a buttons dynamically and add them to table layout panel
i have added a button to a table layout panel programatically, and whilst it
i have just begun experimenting on using table layout panel to keep things organised.
I have a table layout panel that in each row i have a Label
I want to have a two widgets to stack up X Y I want
I have a custom control for a LayoutPanel that holds child controls. I want
I have Buttons attached to elements on the modules entrypoint html page using RootPanel.get(foo).add(button)

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.