uikit / uikit

A lightweight and modular front-end framework for developing fast and powerful web interfaces

Home Page:http://getuikit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scrollspyNav incorrect scrolling to an element with a fixed element in the window

uatrend opened this issue · comments

UIkit Version

Check if the issue is reproducible with the latest stable version.
3.17.1

Actual Behavior

incorrect scrolling to an element
In UIkit 3.16.26 everything works

Steps to Reproduce the Problem

On UIkit site change the following properties in class .tm-sidebar-left and click another sidebar right menu item.

Before:

.tm-sidebar-left {
    position: fixed;
    top: 80px;
    bottom: 0;
    box-sizing: border-box;
    width: 240px!important;
    padding: 40px 40px 60px 40px;
    border-right: 1px #e5e5e5 solid;
    overflow: auto;
}

After:

.tm-sidebar-left {
    position: fixed;
    top: 0; // Changed
    bottom: 0;
    box-sizing: border-box;
    width: 240px!important;
    padding: 40px 40px 60px 40px;
    border-right: 1px #e5e5e5 solid;
    overflow: auto;
    z-index: 1001; // Added
}

Fixed with 681c7ab