This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115
stars
21
forks
source link
SideDrawer overlays previous screen in "back" transition #1333
Please tell us how to recreate the issue in as much detail as possible.
When a SideDrawer is added to a view that is not the root of the stack, attaching a "back" action within the SideDrawer causes the navigation to slide sideways and the drawer to slide in the opposite direction at the same time. The drawer's viewport is not clipped to the screen that it was originally attached to. It appears as though it is disconnected from its original view hierarchy and added to the root window or something, meaning that any clipToBounds doesn't apply appropriately to solve the issue.
The attached Playground exhibits the issue. Tap "go there", then "Open Drawer", then "go back".
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
I worked around this issue by changing the transition to a fade prior to executing the back navigation, but this should still be fixed so that a workaround isn't needed.
@facetious the latest version of the drawer is meant to be used only as a root component. You can still disable/enable as done here and this way you will have a drawer only where it is needed.
Tell us about the problem
When using the
nativescript-ui-sidedrawer
on a secondary page, navigating back causes an undesirable overlay during the transition.https://play.nativescript.org/?template=play-ng&id=FCb2Wp&v=2
Which platform(s) does your issue occur on?
iOS
It does not appear to be an issue on Android with default transitions as there is no sideways slide.
Please provide the following version numbers that your issue occurs with:
This is the device info reported in the NativeScript Playground "Devices" section.
Please tell us how to recreate the issue in as much detail as possible.
When a SideDrawer is added to a view that is not the root of the stack, attaching a "back" action within the SideDrawer causes the navigation to slide sideways and the drawer to slide in the opposite direction at the same time. The drawer's viewport is not clipped to the screen that it was originally attached to. It appears as though it is disconnected from its original view hierarchy and added to the root window or something, meaning that any
clipToBounds
doesn't apply appropriately to solve the issue.The attached Playground exhibits the issue. Tap "go there", then "Open Drawer", then "go back".
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
https://play.nativescript.org/?template=play-ng&id=FCb2Wp&v=2