mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +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) {
|
if (page && page.actionBarHidden !== undefined) {
|
||||||
newValue = !page.actionBarHidden;
|
newValue = !page.actionBarHidden;
|
||||||
} else {
|
} 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;
|
newValue = !!newValue;
|
||||||
|
@ -80,7 +80,7 @@ export class PageBase extends ContentView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public _addChildFromBuilder(name: string, value: any) {
|
public _addChildFromBuilder(name: string, value: any) {
|
||||||
if (value instanceof ActionBar) {
|
if (value.constructor.name === 'ActionBar') {
|
||||||
this.actionBar = value;
|
this.actionBar = value;
|
||||||
} else {
|
} else {
|
||||||
super._addChildFromBuilder(name, value);
|
super._addChildFromBuilder(name, value);
|
||||||
|
Reference in New Issue
Block a user