Skip to content

Commit

Permalink
EZP-29210: Fix admin UI anchor link scroll bug (#1366)
Browse files Browse the repository at this point in the history
* Fix admin UI anchor link scroll bug
- fixed height on the width controller element causes the user to get
'stuck' and unable to scroll back to the top when clicking on a link
targeting an in page anchor

The bug is also noted in this Jira ticket:
https://jira.ez.no/browse/EZP-29210

* Fix admin UI anchor link scroll bug
- removed widthcontrol-handler from user menu include template (admin)
  • Loading branch information
benkmugo authored and konradoboza committed Jun 22, 2018
1 parent a34afaf commit a844df6
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 39 deletions.
5 changes: 2 additions & 3 deletions design/admin/stylesheets/pagelayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,10 @@ ul.leftmenu-items li.current a
#widthcontrol-handler
{
position: absolute;
right: -30px;
top:-20px;
right: 20px;
top: 0;
bottom: 0; /* strech div to full width of relative box */
width: 10px;
height: 5000px;
cursor: col-resize;
z-index:11;
/* background: #f8f8f8;*/
Expand Down
3 changes: 3 additions & 0 deletions design/admin/templates/pagelayout.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ div#maincolumn {ldelim} padding-right: 20px; padding-left: 50px; {rdelim}

<div id="left-panels-separator">
<div class="panels-separator-top"></div>
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>
<div class="panels-separator-bottom"></div>
</div>

Expand Down
5 changes: 0 additions & 5 deletions design/admin/templates/parts/content/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,3 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>
5 changes: 0 additions & 5 deletions design/admin/templates/parts/media/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,3 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>
5 changes: 0 additions & 5 deletions design/admin/templates/parts/my/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,3 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>
5 changes: 0 additions & 5 deletions design/admin/templates/parts/setup/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,3 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>
5 changes: 0 additions & 5 deletions design/admin/templates/parts/shop/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,3 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>
6 changes: 0 additions & 6 deletions design/admin/templates/parts/user/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,4 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>

{/if}{* if ne( $ui_context, 'edit' ) *}
5 changes: 0 additions & 5 deletions design/admin/templates/parts/visual/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,3 @@
{/switch}
</p>
</div>

{* This is the border placed to the left for draging width, js will handle disabling the one above and enabling this *}
<div id="widthcontrol-handler" class="hide">
<div class="widthcontrol-grippy"></div>
</div>

0 comments on commit a844df6

Please sign in to comment.