Skip to content

Commit 0dda3c3

Browse files
committed
[MD settings] fix tooltips on policy icons
This CL changes the relative position for tooltips vs the trigger for the tooltip so that the tooltip shows up reliably. Bug: 774046 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I78f8fd6b95992a2c4e3f1a1d7b1ff43a969a4654 Reviewed-on: https://chromium-review.googlesource.com/719581 Reviewed-by: Steven Bennetts <[email protected]> Commit-Queue: Dave Schuyler <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#509188}(cherry picked from commit 5f88902) Reviewed-on: https://chromium-review.googlesource.com/726400 Reviewed-by: Dave Schuyler <[email protected]> Cr-Commit-Position: refs/branch-heads/3239@{#56} Cr-Branched-From: adb61db-refs/heads/master@{#508578}
1 parent f47ffe1 commit 0dda3c3

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

chrome/browser/resources/settings/search_settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ cr.define('settings', function() {
213213
// Dynamically position the bubble at the edge the associated control
214214
// element.
215215
var updatePosition = function() {
216-
searchBubble.style.top =
216+
searchBubble.style.top = element.offsetTop +
217217
(innards.classList.contains('above') ? -searchBubble.offsetHeight :
218218
element.offsetHeight) +
219219
'px';

ui/webui/resources/cr_elements/cr_link_row/cr_link_row.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
min-height: var(--cr-section-min-height);
2525
outline: none;
2626
padding: 0 var(--cr-section-padding);
27-
position: relative;
2827
}
2928

3029
:host([disabled]) {

ui/webui/resources/cr_elements/shared_vars_css.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
display: flex;
6666
min-height: var(--cr-section-min-height);
6767
padding: 0 var(--cr-section-padding);
68-
position: relative;
6968
};
7069

7170
--cr-title-text: {

0 commit comments

Comments
 (0)