You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** helper to open popup when clicked on last item. return true when just opened. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) */
122
+
/** helper to open popup when clicked on last item. return true when just opened.
123
+
* (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors)
124
+
*
125
+
* Open a popup if mouse button is released over the item */
Copy file name to clipboardExpand all lines: core/src/main/kotlin/imgui/api/tabBarsTabs.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ interface tabBarsTabs {
33
33
if (window.skipItems) return
34
34
35
35
val tabBar = g.currentTabBar ?: error("Mismatched BeginTabBar()/EndTabBar()!")
36
-
if (tabBar.wantLayout)
36
+
if (tabBar.wantLayout)// Fallback in case no TabItem have been submitted
37
37
tabBar.layout()
38
38
39
39
// Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed().
@@ -88,17 +88,17 @@ interface tabBarsTabs {
88
88
* For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name.
89
89
*
90
90
* [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed.
91
-
* To use it to need to call the function SetTabItemClosed() after BeginTabBar() and before any call to BeginTabItem().
92
-
* Tabs closed by the close button will automatically be flagged to avoid this issue.
93
-
* FIXME: We should aim to support calling SetTabItemClosed() after the tab submission (for next frame) */
91
+
* To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar().
92
+
* Tabs closed by the close button will automatically be flagged to avoid this issue. */
0 commit comments