[
https://issues.apache.org/jira/browse/SOLR-8210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14974648#comment-14974648
]
Upayavira edited comment on SOLR-8210 at 10/26/15 5:50 PM:
-----------------------------------------------------------
My angularised version.... in app.js:
{code}
.directive('scrollableWhenSmall', function($window) {
return {
link: function(scope, element, attrs) {
var w = angular.element($window);
var checkFixedMenu = function() {
var shouldScroll = w.height() < (element.height() +
$('#header').height() + 40);
element.toggleClass( 'scroll', shouldScroll);
};
w.bind('resize', checkFixedMenu);
w.bind('load', checkFixedMenu);
}
}
})
{code}
and in index.html:
{code}
<div id="wrapper" scrollable-when-small>
{code}
This appears to be working now - yay!
was (Author: upayavira):
My angularised version.... in app.js:
{code}
.directive('scrollableWhenSmall', function($window) {
return {
link: function(scope, element, attrs) {
var w = angular.element($window);
var checkFixedMenu = function() {
var shouldScroll = w.height() < (element.height() +
$('#header').height() + 40);
element.toggleClass( 'scroll', shouldScroll);
};
w.bind('resize', checkFixedMenu);
w.bind('load', checkFixedMenu);
}
}
})
and in index.html:
<div id="wrapper" scrollable-when-small>
This appears to be working now - yay!
> Admin UI menu does not scroll
> -----------------------------
>
> Key: SOLR-8210
> URL: https://issues.apache.org/jira/browse/SOLR-8210
> Project: Solr
> Issue Type: Improvement
> Components: web gui
> Affects Versions: 5.3
> Reporter: Upayavira
> Assignee: Upayavira
> Priority: Minor
>
> When you view the UI on a projector - or a small screen (e.g. with dev tools
> open), some menu options might be obscured at the bottom of the screen. The
> menu doesn't scroll though, meaning the only way to get to these entries is
> to use another screen, or change the text size in the browser temporarily.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]