mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix all actionsheet dialogs on tablet
This commit is contained in:
@@ -170,8 +170,10 @@ const AppStack = React.memo(
|
||||
let size = event?.nativeEvent?.layout;
|
||||
updatedDimensions = size;
|
||||
if (!size || (size.width === dimensions.width && mode !== null)) {
|
||||
console.log(mode);
|
||||
DDS.setSize(size);
|
||||
dispatch({type: Actions.DEVICE_MODE, state: mode});
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -188,9 +190,8 @@ const AppStack = React.memo(
|
||||
});
|
||||
|
||||
setWidthHeight(size);
|
||||
console.log(size,"SIZES")
|
||||
DDS.setSize(size);
|
||||
DDS.checkSmallTab(size.width > size.height ? 'LANDSCAPE' : 'PORTRAIT');
|
||||
|
||||
if (DDS.isLargeTablet()) {
|
||||
setDeviceMode('tablet', size);
|
||||
} else if (DDS.isSmallTab) {
|
||||
|
||||
Reference in New Issue
Block a user