Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Content hidden behind menu #7589


User avatar
0
feloff created

I sporadically see the menu and content overlapping and once it happens it gets stuck that way.

Attach a screenshots showing it in one of aspnet zero's component - users (so not related to my own components) The subheader is fine: The parent of both:

Refreshing the page fixes it, but clearly something odd with the layout.

Haven't found a way to replicate it on demand, but perhaps others have experienced the same issue


9 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    What is your product version?

  • User Avatar
    0
    feloff created

    Angular - aspnet zero version 7.1. First observed by tester (using chrome). I also observed issue in chrome.

    Suspect it happens when user resizes window during load, but haven't been able to reproduce on demand so not sure.

  • User Avatar
    0
    maliming created
    Support Team

    I tried but did not reproduce the problem.

  • User Avatar
    0
    feloff created

    found the reason: had a placeholder page with a .less stylesheet that set the body... once that page is visited it caused the issue: body { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; }. Fixing that solved it

  • User Avatar
    0
    maliming created
    Support Team

    hi @feloff This is not a problem with Zero. right?

  • User Avatar
    0
    feloff created

    Not sure actually - styling my frustration rather than my strength.

    It does seem, however, as if the body style of one component affects other componets after navigating away from that component. The simple solution is not to change the body style, but I see zero does do that as well, e.g. select-edition-component.less.

    its very easy to replicate now that i know where it came from:

    1. replace all html in dashboard component with <p>this will break other things</p>
    2. replace logic in dashboard.component.ts with @Component({ templateUrl: './dashboard.component.html', styleUrls: ['./dashboard.component.less'], encapsulation: ViewEncapsulation.None, animations: [appModuleAnimation()] }) export class DashboardComponent
    3. edit style sheet in dashboard.component.less: body { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; }.
    4. load. navigate to dashboard (keep window large), and then to users (now make window smaller). The users will be hidden behind the nav.

    Not an issue for me now that I know about it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @feloff

    Does this happen if you don't apply step 3 ?

    Thanks.

  • User Avatar
    0
    feloff created

    No - the issue lies in step 3. the rest is just to show the issue. using wrap around div with classname, e.g. <div class class="par-wrapper">...<div> and then .par-wrapper { display: ... } solves it, but I know other components also set the body, e.g. select-edition-component.less, so these components changing the body all have a risk of breaking the overall layout once navigating away from them.

    Don't know if this is metronic problem or not, but the workaround is simple enough in my case

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @feloff

    It is not totally a Metronic issue, it is something like %50 Metronic and %50 AspNet Zero. We have to apply this since user can move from subscription management page to upgrade edition or extend edition pages and those pages stays under accoutn layout which doesn't have a left side menu and has a different look.