Skip to content

Commit

Permalink
fix(query-results-ui): set max-height on query results modal popup co…
Browse files Browse the repository at this point in the history
…ntainer

Setting max-height contracts the popup vertically if there not much data in it.
Fixes vertical scrolling "undeflow".
  • Loading branch information
AleksueiR committed Apr 27, 2015
1 parent 6a8f58d commit d44d085
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/RAMP/Modules/mapClickHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ define([

$('.sub-panel').on('click', '#wms-expand', function () {
$(document).trigger('open.wb-lbx', [{ src: '#wms-results-large', type: 'inline' }]);
$('#wms-results-large').css('width', Math.round(window.innerWidth * 0.9) + 'px');
$('#wms-results-large .modal-body').css('height', Math.round(window.innerHeight * 0.75) + 'px');
$('#wms-results-large').css({
width: Math.round(window.innerWidth * 0.9) + 'px',
'max-height': Math.round(window.innerHeight * 0.75) + 'px'
});
});

topic.publish(EventManager.GUI.SUBPANEL_OPEN, {
Expand Down

0 comments on commit d44d085

Please sign in to comment.