mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix: refresh flat property on change in IOS (#4628)
* Fix: refresh flat property on change in IOS * Fix typos
This commit is contained in:
committed by
SvetoslavTsenov
parent
d949cc7128
commit
2dbd1b19ea
@@ -1,5 +1,5 @@
|
||||
import { IOSActionItemSettings, ActionItem as ActionItemDefinition } from ".";
|
||||
import { ActionItemBase, ActionBarBase, isVisible, View, colorProperty, backgroundColorProperty, backgroundInternalProperty, layout, Color } from "./action-bar-common";
|
||||
import { ActionItemBase, ActionBarBase, isVisible, View, colorProperty, backgroundColorProperty, backgroundInternalProperty, flatProperty, layout, Color } from "./action-bar-common";
|
||||
import { ImageSource, fromFileOrResource } from "../../image-source";
|
||||
|
||||
export * from "./action-bar-common";
|
||||
@@ -359,4 +359,11 @@ export class ActionBar extends ActionBarBase {
|
||||
}
|
||||
[backgroundInternalProperty.setNative](value: UIColor) { // tslint:disable-line
|
||||
}
|
||||
|
||||
[flatProperty.setNative](value: boolean) { // tslint:disable-line
|
||||
let navBar = this.navBar;
|
||||
if (navBar) {
|
||||
this.updateFlatness(navBar);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user