Bug 59680 - UserControl won't downsize in a specific situation (Works correctly on Windows !)
Summary: UserControl won't downsize in a specific situation (Works correctly on Window...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-22 06:30 UTC by Dante Marshal
Modified: 2017-09-22 11:26 UTC (History)
2 users (show)

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


Attachments
The file containing bugged UserControl ! (4.22 KB, text/x-csharp)
2017-09-22 06:30 UTC, Dante Marshal
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 for Bug 59680 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Dante Marshal 2017-09-22 06:30:33 UTC
Created attachment 24878 [details]
The file containing bugged UserControl !

There's this UserControl which should Downsize when Docking to it's parent control on a form, And it works well on Windows. But it doesn't downsize when compiled and ran on Linux (Tested on Ubuntu-Mate 16.04).

When parent of control is resized, and control is Docked to parent, The controls should resize to fit the parent.
When new size is bigger than the old size (Growing), It works perfectly fine on both Windows and Linux.
But when new size is smaller than the old one (Shrinking), It works fine on Windows but on Linux, The "Resize" event for UserControl is not called at all !

I added the code through Attachment.

Note : It uses some Image Resources for its buttons, Which I commented out because they were part of project files.