Ticket #1426 (closed defect: fixed)

Opened 11 months ago

Last modified 9 months ago

CustomLayout within CustomLayout not visible

Reported by: Jonatan Kronqvist Owned by: Matti Tahvonen
Priority: blocker Milestone: User Interface Library 5.2.0 RC
Component: undefined Version:
Keywords: Cc:
Known Issue description:
Hours estimate: Deadline (dd.mm.yyyy):
Known Issue version (since): Known Issue title:
Hours done: Depends to:
Affects documentation: no
Known Issue workaround:
Affects release notes: yes Contract:

Description

Using tk 5.1.0-rc1

The attached project contains two custom layouts, where one of the layouts is put in a location in the other layout. Like so:

		CustomLayout viewLayout = new CustomLayout("view");
		viewLayout.addComponent(new Label("Title Location"), "title");
		CustomLayout periodselectLayout = new CustomLayout("periodselect");
		periodselectLayout.addComponent(new Label("Period label"), "label");
...
		periodselectLayout.addComponent(new Button("Apply"), "button_apply");
		viewLayout.addComponent(periodselectLayout, "periodselect");
		viewLayout.addComponent(new Label("Content location"), "content");
		
		mainWindow.addComponent(viewLayout);

Everything seems to render fine when inspecting the html in firebug, but nothing from the second layout (here periodselectLayout) is visible.

Attachments

HelloWorld-customlayouts.zip (2.3 MB) - added by Jonatan Kronqvist 11 months ago.
The test-project

Change History

Changed 11 months ago by Jonatan Kronqvist

The test-project

Changed 11 months ago by Joonas Lehtinen

  • milestone set to User Interface Library 5.1.1

Changed 11 months ago by Joonas Lehtinen

  • priority changed from critical to undefined

Changed 11 months ago by Matti Tahvonen

  • owner changed from Joonas Lehtinen to Matti Tahvonen
  • priority changed from undefined to blocker
  • status changed from new to assigned

Changed 11 months ago by Matti Tahvonen

  • status changed from assigned to closed
  • resolution set to fixed

fixed in [3935]

I'm rather sure this is a FF bug, more than a toolkit bug. Removed overflow hidden - then FF renders it better. Hopefully not breaking everything.

BTW. I strongly suggest building layouts using divs.

Changed 9 months ago by Joonas Lehtinen

  • milestone changed from User Interface Library 5.1.2 to User Interface Library 5.2.0

Milestone User Interface Library 5.1.2 deleted

Note: See TracTickets for help on using tickets.