mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Merge pull request #1371 from BDisp/autosize-direction-text-init
CheckBox AutoSize should initialize with the Label default.
This commit is contained in:
@@ -53,7 +53,8 @@ namespace UICatalog {
|
||||
|
||||
var ckbAutoSize = new CheckBox ("Auto Size") {
|
||||
X = Pos.Center (),
|
||||
Y = Pos.Center () + 5
|
||||
Y = Pos.Center () + 5,
|
||||
Checked = labelH.AutoSize = labelV.AutoSize
|
||||
};
|
||||
ckbAutoSize.Toggled += (_) => labelH.AutoSize = labelV.AutoSize = ckbAutoSize.Checked;
|
||||
Win.Add (ckbAutoSize);
|
||||
|
||||
Reference in New Issue
Block a user