Skip to content

Commit

Permalink
Version 77:
Browse files Browse the repository at this point in the history
* Improved clip thumbnail positioning when the side bar is on the right.
* Improved date picker dialog positioning on small displays.
  • Loading branch information
bp2008 committed Jun 8, 2019
1 parent 00b2e9c commit e6c0445
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
};
</script>
<script type="text/javascript">
var ui_version = "76";
var ui_version = "77";
var bi_version = "%%VERSION%%";
var combined_version = ui_version + "-" + bi_version;
//if (!!navigator.userAgent.match(/ Android /))
Expand Down
20 changes: 17 additions & 3 deletions ui3/ui3.js
Original file line number Diff line number Diff line change
Expand Up @@ -4199,10 +4199,24 @@ function DateFilter(dateRangeLabelSelector)
{
var $ele = $(ele);
var offset = $ele.offset();
var wW = $(window).width();
var minW = 195; // 192 plus some wiggle room
if (settings.ui3_sideBarPosition === "Right")
$datePickerDialog.css("right", $(window).width() - offset.left + "px");
{
var right = wW - offset.left;
if (wW - right < minW)
right = wW - minW;
$datePickerDialog.css("left", "");
$datePickerDialog.css("right", right + "px");
}
else
$datePickerDialog.css("left", offset.left + $ele.outerWidth(true) + "px");
{
var left = offset.left + $ele.outerWidth(true);
if (wW - left < minW)
left = wW - minW;
$datePickerDialog.css("left", left + "px");
$datePickerDialog.css("right", "");
}
$datePickerDialog.css("top", offset.top + "px");
$datePickerDialog.show();
isVisible = true;
Expand Down Expand Up @@ -5749,7 +5763,7 @@ function BigThumbHelper()
top = 0;
if (settings.ui3_sideBarPosition === "Right")
{
var right = $(window).width() - ($hAlign.offset().left - 3);
var right = $(window).width() - $hAlign.offset().left;
$thumb.css("left", "");
$thumb.css("right", right + "px");
}
Expand Down

0 comments on commit e6c0445

Please sign in to comment.