mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 983653 - UITour: Make the highlight effect a circle on the bookmarks combo button. ui-r=shorlander, r=MattN
This commit is contained in:
parent
6b520eb10f
commit
e5caf23e91
@ -811,9 +811,9 @@ this.UITour = {
|
||||
let minDimension = Math.min(highlightHeight, highlightWidth);
|
||||
let maxDimension = Math.max(highlightHeight, highlightWidth);
|
||||
|
||||
// If the dimensions are within 110% of each other (to include the bookmarks button),
|
||||
// If the dimensions are within 200% of each other (to include the bookmarks button),
|
||||
// make the highlight a circle with the largest dimension as the diameter.
|
||||
if (maxDimension / minDimension <= 2.1) {
|
||||
if (maxDimension / minDimension <= 3.0) {
|
||||
highlightHeight = highlightWidth = maxDimension;
|
||||
highlighter.style.borderRadius = "100%";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user