mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
some action bar fixes
This commit is contained in:
@ -255,7 +255,7 @@ export class Frame extends FrameBase {
|
||||
if (page && page.actionBarHidden !== undefined) {
|
||||
newValue = !page.actionBarHidden;
|
||||
} else {
|
||||
newValue = this.ios.controller.viewControllers.count > 1 || (page && page.actionBar && !page.actionBar._isEmpty());
|
||||
newValue = this.ios.controller.viewControllers.count > 1 || (page && page.hasActionBar && !page.actionBar._isEmpty());
|
||||
}
|
||||
|
||||
newValue = !!newValue;
|
||||
|
@ -80,7 +80,7 @@ export class PageBase extends ContentView {
|
||||
}
|
||||
|
||||
public _addChildFromBuilder(name: string, value: any) {
|
||||
if (value instanceof ActionBar) {
|
||||
if (value.constructor.name === 'ActionBar') {
|
||||
this.actionBar = value;
|
||||
} else {
|
||||
super._addChildFromBuilder(name, value);
|
||||
|
Reference in New Issue
Block a user