Bug 37158 - [WP] button widthrequest not applied
Summary: [WP] button widthrequest not applied
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Chris King
URL:
Depends on:
Blocks:
 
Reported: 2015-12-18 22:04 UTC by Jorrit
Modified: 2017-06-19 20:58 UTC (History)
5 users (show)

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

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 Developer Community or GitHub 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 NORESPONSE

Description Jorrit 2015-12-18 22:04:36 UTC
When I set a button's WidthRequest, the width is never applied on WP.
Only if I use a custom renderer and set 'Control.Width = formsButton.WidthRequest', the width is supplied correctly.
Comment 1 Chris King 2017-01-05 00:12:17 UTC
Jorrit, can you provide a reduced reproduction of your issue with actual and expected behavior? There are a number of factors that affect layout so it's hard to say if what you are seeing is a bug or just an odd confluence of the options you chose. 

For example, if you create a blank forms project and add a button to the StackLayout, set it's WidthRequest you'll see you're unable to alter the button width. If however you set the StackLayout.HorizontalOptions to LayoutOptions.Center then the button width will start to change.

Warm regards,
XFT
Comment 2 Chris King 2017-06-19 17:09:12 UTC
Assigned to you as you were last to requeste info for this bug.
Comment 3 Samantha Houts [MSFT] 2017-06-19 20:58:49 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!