Bug 8907 - TableLayoutPanel has buggy layout due to applying resources
Summary: TableLayoutPanel has buggy layout due to applying resources
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 2.10.x
Hardware: PC Linux
: Lowest normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-12-12 12:34 UTC by Stephen McConnel
Modified: 2014-05-15 17:13 UTC (History)
3 users (show)

Tags: mono-community
Is this bug a regression?: ---
Last known good build:


Attachments
TestTableLayoutPanelBug.zip contains a simplified project that demonstrates the layout bug. (29.06 KB, application/zip)
2012-12-12 12:34 UTC, Stephen McConnel
Details
FixTableLayoutPanel.patch is a proposed fix for this bug. (1.87 KB, patch)
2012-12-12 12:35 UTC, Stephen McConnel
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Stephen McConnel 2012-12-12 12:34:12 UTC
Created attachment 3086 [details]
TestTableLayoutPanelBug.zip contains a simplified project that demonstrates the layout bug.

The code for applying layout settings fails to work after resources.ApplyResources is called for a TableLayoutPanel.  The column and row values are stored in the resx file with the control names, and the internal 'columns' and 'rows' dictionaries are filled in with those names.  When the dictionaries are accessed later during layout, the controls themselves are used as keys into those dictionaries, and thus the proper row and column values are not found.
Comment 1 Stephen McConnel 2012-12-12 12:35:40 UTC
Created attachment 3087 [details]
FixTableLayoutPanel.patch is a proposed fix for this bug.
Comment 2 eb1 2014-03-14 07:04:17 UTC
Suggested fix in PR #954
Comment 3 Miguel de Icaza [MSFT] 2014-05-15 17:13:39 UTC
applied fix.