-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(QMenu/QTooltip): position engine quirk when target is not ready y…
…et -- resulting in jumping menus/tooltips #11247
- Loading branch information
1 parent
b87cc6e
commit c9e43fa
Showing
4 changed files
with
193 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<template> | ||
<div class="q-pa-md"> | ||
<div class="q-gutter-md"> | ||
<q-btn color="accent" label="Fit Menu" style="width: 280px;"> | ||
|
||
<q-menu fit> | ||
<q-list style="min-width: 100px"> | ||
<q-item clickable> | ||
<q-item-section>New tab</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section>New incognito tab</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section>Recent tabs</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section>History</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section>Downloads</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section>Settings</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section>Help & Feedback</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-btn> | ||
|
||
<q-btn color="brown" label="Max Height Menu"> | ||
<q-menu max-height="130px"> | ||
<q-list style="min-width: 100px"> | ||
<q-item clickable> | ||
<q-item-section>New tab</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section>New incognito tab</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section>Recent tabs</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section>History</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section>Downloads</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section>Settings</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section>Help & Feedback</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-btn> | ||
|
||
<q-btn color="indigo" label="Max Width Menu"> | ||
<q-menu max-width="80px"> | ||
<q-list style="min-width: 100px"> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">New tab</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">New incognito tab</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">Recent tabs</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">History</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">Downloads</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">Settings</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
<q-separator /> | ||
<q-item clickable> | ||
<q-item-section> | ||
<q-item-label lines="1">Help & Feedback</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-btn> | ||
|
||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters