Skip to content

Commit

Permalink
Merge pull request #1500 from skateman/form-buttons-div-fix
Browse files Browse the repository at this point in the history
Fix the placement of form buttons on the ops screens
  • Loading branch information
h-kataria committed Jun 8, 2017
2 parents af2c4aa + bc15616 commit deef2b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/miq_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -1531,9 +1531,12 @@ function miqInitAccordions() {
function miqInitMainContent() {
var toolbar = $('#toolbar');
var footer = $('#paging_div');
var buttons = $('#form_buttons_div');
var height = 0;
if (footer.find('*:visible').length > 0) {
height += footer.outerHeight();
} else if (buttons.find("*:visible").length > 0) {
height += buttons.outerHeight() + 5; // TODO: the styling of #form_buttons_div should be revisited
}
if (toolbar.find("*:visible").length > 0) {
height += toolbar.outerHeight();
Expand Down

0 comments on commit deef2b6

Please sign in to comment.