mirror of https://github.com/apache/lucene.git
SOLR-5966: Admin UI Menu is fixed and doesn't respect smaller viewports
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1620473 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e7835ba433
commit
751bc33ea9
|
@ -134,6 +134,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-6426: SolrZkClient clean can fail due to a race with children nodes. (Mark Miller)
|
||||
|
||||
* SOLR-5966: Admin UI Menu is fixed and doesn't respect smaller viewports.
|
||||
(Aman Tandon, steffkes via shalin)
|
||||
|
||||
Other Changes
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -195,6 +195,11 @@ ul
|
|||
z-index: 42;
|
||||
}
|
||||
|
||||
.scroll #header
|
||||
{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#header #solr
|
||||
{
|
||||
background-image: url( ../../img/solr.png );
|
||||
|
|
|
@ -24,6 +24,12 @@ limitations under the License.
|
|||
width: 150px;
|
||||
}
|
||||
|
||||
.scroll #menu-wrapper
|
||||
{
|
||||
position: absolute;
|
||||
top: 90px;
|
||||
}
|
||||
|
||||
.has-environment #menu-wrapper
|
||||
{
|
||||
top: 160px;
|
||||
|
|
|
@ -144,6 +144,8 @@ var sammy = $.sammy
|
|||
|
||||
this.active_core = active_element;
|
||||
}
|
||||
|
||||
check_fixed_menu();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -403,6 +405,9 @@ var solr_admin = function( app_config )
|
|||
}
|
||||
);
|
||||
|
||||
check_fixed_menu();
|
||||
$( window ).resize( check_fixed_menu );
|
||||
|
||||
var system_url = config.solr_path + '/admin/info/system?wt=json';
|
||||
$.ajax
|
||||
(
|
||||
|
@ -594,6 +599,11 @@ var solr_admin = function( app_config )
|
|||
);
|
||||
};
|
||||
|
||||
check_fixed_menu = function check_fixed_menu()
|
||||
{
|
||||
$( '#wrapper' ).toggleClass( 'scroll', $( window ).height() < $( '#menu-wrapper' ).height() + $( '#header' ).height() + 40 );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
var connection_check_delay = 1000;
|
||||
|
|
Loading…
Reference in New Issue