Skip to content

Commit 52a05f3

Browse files
author
Vladimir Enchev
committed
this.ios.sizeToFit() added to the iOS button
1 parent 50e0464 commit 52a05f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/button/button.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class Button extends view.View {
3131
public setNativeProperty(data: observable.PropertyChangeData) {
3232
if (data.propertyName === Button.textProperty) {
3333
this.ios.setTitleForState(data.value, UIKit.UIControlState.UIControlStateNormal);
34+
this.ios.sizeToFit();
3435
} else if (true) {
3536
//
3637
}

0 commit comments

Comments
 (0)