Skip to content

Commit

Permalink
Dev: On 1366x768 screen, assume survey bar can be col 12 if no save o…
Browse files Browse the repository at this point in the history
…r close buttons are rendered
  • Loading branch information
olleharstedt committed Apr 15, 2016
1 parent 75a0266 commit 5723f59
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/views/admin/survey/surveybar_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@

<div class='menubar surveybar' id="surveybarid">
<div class='row container-fluid'>
<div class="col-md-8 col-xs-6">

<?php // If there are no save or close buttons, take up some more space (useful for 1366x768 screens) ?>
<?php if (!isset($surveybar['savebutton']['form']) && (!isset($surveybar['saveandclosebutton'])) && (!isset($surveybar['closebutton']))): ?>
<div class="col-md-12 col-xs-6">
<?php else: ?>
<div class="col-md-8 col-xs-6">
<?php endif; ?>

<!-- Add a new group -->
<?php if(isset($surveybar['buttons']['newgroup'])):?>
Expand Down

0 comments on commit 5723f59

Please sign in to comment.