Thank you for reporting this bug. We will make it our priority to review this report.
-
Ext JS Premium Member
Modern: Ext.Viewport.toggleMenu() dont' work
Hi all,
i have modern project with ExtJs 6.2.1 and cordova.
Problem is with Ext.Viewport.toggleMenu(<side>);
The preview on browser work fine but on simulator or on device with Android "toggleMenu" don't wok, menu NOT show.
On Android Studio on logcat there is this log on button tap:
I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP
Any idea?
Thanks,
Luca
I'm using:
Android Studio 3.0.1,
gradle 4.1.0
targetSDKversione 26
-
Ext JS Premium Member
Same problem with Ext.Viewport.showMenu('left');
After more hours of test, i think the problem is in Android Studio Gradle version.
Don't work on versione 3.3.0 and work fine on 2.2.3
-
Ext Support Team
Hey,
Which version of Android on the emulator are you testing this on?
-
Ext JS Premium Member
Android 8.0.0 don't work
Android 7.0 work
-
Any solutions/workaround on this?
-
Ext JS Premium Member
Yes, use Ext.ActionSheet for menu view then:
var mm = Ext.create(<menu view>);
Ext.Viewport.setMenu(mm, {
side: 'left',
reveal: false,
cover: true,
modal: true
});
-
Tried using:
var mm = Ext.create('Ext.menu.Menu',{
//my menu configs here
});
Ext.Viewport.setMenu(mm, {
side: 'left',
reveal: false,
cover: true,
modal: true
});
but got "TypeError: menu.getCover is not a function" in the console ._.''
Edit: Damn i'm dumb, you explicty said 'use Ext.ActionSheet ",it works now, thank you mate.