Skip to content

[iOS] ScrollView inside a nested RadSideDrawer incorrect layout #6674

Closed as not planned

Description

@MartoYankov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.0.3
  • Cross-platform modules: 5.0.5
  • iOS Runtime: 5.0.0
  • Plugin(s): nativescript-ui-sidedrawer: 5.0.0

Describe the bug
On iPhone X family (the ones with the notch) having a ScrollView as direct child of nested RadSideDrawer mainContent breaks the layout. The first element in the ScrollView is offset from the top incorrectly.

Sample project
https://play.nativescript.org/?template=play-tsc&id=P8f1mc&v=2


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. erjdriver commented on Jan 26, 2019

    @erjdriver

    Setting the flat property of ActionBar to true - seems to fix the problem.

    Seems to be related to issue #6788

    This flat property seems to be causing other problems in my iOS app if it's enabled - so both false and true values seems to be causing different problems. I'll create a new issue for that.

  2. MartoYankov commented on Feb 5, 2019

    @MartoYankov
    ContributorAuthor

    @erjdriver I'm investigating the action bar flat mode and it doesn't seem that this issue is connected to it. There is no action bar at play here.

  3. erjdriver commented on Apr 25, 2019

    @erjdriver

    This problem is still there with 5.3.

    The problem is a page with a ScrollView with a child is offset from the top by 50px or so (top-margin). The page also has nativescript-ui-sidedrawer

    Doesn't happen first time - but if you navigate away and back again - it does.

    Only ios.

    More info in issue

    ProgressNS/nativescript-ui-feedback#1001

    test #1: i commented out the ActionBar and the problem is not there.

  4. NathanWalker commented on Oct 23, 2026

    @NathanWalker
    Contributor

    Closing this old report: iOS safe-area layout and the side drawer plugin has changed substantially since NativeScript 5.3, and there's been no repro on a current version. If you still see this on current @nativescript/core, please open a new issue with a minimal repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions