@@ -93,7 +93,7 @@ Sets the panel's visibility state
9393### panel.setTitle(newTitle)
9494Updates the display title shown in the tab bar for this panel.
9595
96- ** Kind** : instance method of [ <code >Panel</code >] ( #Panel )
96+ ** Kind** : instance method of [ <code >Panel</code >] ( #Panel )
9797
9898| Param | Type | Description |
9999| --- | --- | --- |
@@ -105,7 +105,7 @@ Updates the display title shown in the tab bar for this panel.
105105Destroys the panel, removing it from the tab bar, internal maps, and the DOM.
106106After calling this, the Panel instance should not be reused.
107107
108- ** Kind** : instance method of [ <code >Panel</code >] ( #Panel )
108+ ** Kind** : instance method of [ <code >Panel</code >] ( #Panel )
109109<a name =" Panel+getPanelType " ></a >
110110
111111### panel.getPanelType() ⇒ <code >string</code >
@@ -117,37 +117,61 @@ gets the Panel's type
117117## \_ panelMap : <code >Object.< ; string, Panel> ; </code >
118118Maps panel ID to Panel instance
119119
120- ** Kind** : global variable
120+ ** Kind** : global variable
121121<a name =" _$container " ></a >
122122
123123## \_ $container : <code >jQueryObject</code >
124124The single container wrapping all bottom panels
125125
126- ** Kind** : global variable
126+ ** Kind** : global variable
127127<a name =" _$tabBar " ></a >
128128
129129## \_ $tabBar : <code >jQueryObject</code >
130130The tab bar inside the container
131131
132- ** Kind** : global variable
132+ ** Kind** : global variable
133133<a name =" _$tabsOverflow " ></a >
134134
135135## \_ $tabsOverflow : <code >jQueryObject</code >
136136Scrollable area holding the tab elements
137137
138- ** Kind** : global variable
138+ ** Kind** : global variable
139139<a name =" _openIds " ></a >
140140
141141## \_ openIds : <code >Array.< ; string> ; </code >
142142Ordered list of currently open (tabbed) panel IDs
143143
144- ** Kind** : global variable
144+ ** Kind** : global variable
145145<a name =" _activeId " ></a >
146146
147147## \_ activeId : <code >string</code > \| <code >null</code >
148148The panel ID of the currently visible (active) tab
149149
150- ** Kind** : global variable
150+ ** Kind** : global variable
151+ <a name =" _isMaximized " ></a >
152+
153+ ## \_ isMaximized : <code >boolean</code >
154+ Whether the bottom panel is currently maximized
155+
156+ ** Kind** : global variable
157+ <a name =" _preMaximizeHeight " ></a >
158+
159+ ## \_ preMaximizeHeight : <code >number</code > \| <code >null</code >
160+ The panel height before maximize, for restore
161+
162+ ** Kind** : global variable
163+ <a name =" _$editorHolder " ></a >
164+
165+ ## \_ $editorHolder : <code >jQueryObject</code >
166+ The editor holder element, passed from WorkspaceManager
167+
168+ ** Kind** : global variable
169+ <a name =" _recomputeLayout " ></a >
170+
171+ ## \_ recomputeLayout : <code >function</code >
172+ recomputeLayout callback from WorkspaceManager
173+
174+ ** Kind** : global variable
151175<a name =" EVENT_PANEL_HIDDEN " ></a >
152176
153177## EVENT\_ PANEL\_ HIDDEN : <code >string</code >
@@ -165,31 +189,80 @@ Event when panel is shown
165189## PANEL\_ TYPE\_ BOTTOM\_ PANEL : <code >string</code >
166190type for bottom panel
167191
192+ ** Kind** : global constant
193+ <a name =" MAXIMIZE_THRESHOLD " ></a >
194+
195+ ## MAXIMIZE\_ THRESHOLD : <code >number</code >
196+ Pixel threshold for detecting near-maximize state during resize.
197+ If the editor holder height is within this many pixels of zero, the
198+ panel is treated as maximized. Keeps the maximize icon responsive
199+ during drag without being overly sensitive.
200+
201+ ** Kind** : global constant
202+ <a name =" MIN_PANEL_HEIGHT " ></a >
203+
204+ ## MIN\_ PANEL\_ HEIGHT : <code >number</code >
205+ Minimum panel height (matches Resizer minSize) used as a floor
206+ when computing a sensible restore height.
207+
168208** Kind** : global constant
169209<a name =" init " ></a >
170210
171- ## init($container, $tabBar, $tabsOverflow)
211+ ## init($container, $tabBar, $tabsOverflow, $editorHolder, recomputeLayoutFn )
172212Initializes the PanelView module with references to the bottom panel container DOM elements.
173213Called by WorkspaceManager during htmlReady.
174214
175- ** Kind** : global function
215+ ** Kind** : global function
176216
177217| Param | Type | Description |
178218| --- | --- | --- |
179219| $container | <code >jQueryObject</code > | The bottom panel container element. |
180220| $tabBar | <code >jQueryObject</code > | The tab bar element inside the container. |
181221| $tabsOverflow | <code >jQueryObject</code > | The scrollable area holding tab elements. |
222+ | $editorHolder | <code >jQueryObject</code > | The editor holder element (for maximize height calculation). |
223+ | recomputeLayoutFn | <code >function</code > | Callback to trigger workspace layout recomputation. |
224+
225+ <a name =" exitMaximizeOnResize " ></a >
226+
227+ ## exitMaximizeOnResize()
228+ Exit maximize state without resizing (for external callers like drag-resize).
229+ Clears internal maximize state and resets the button icon.
230+
231+ ** Kind** : global function
232+ <a name =" enterMaximizeOnResize " ></a >
233+
234+ ## enterMaximizeOnResize()
235+ Enter maximize state during a drag-resize that reaches the maximum
236+ height. No pre-maximize height is stored because the user arrived
237+ here via continuous dragging; a sensible default will be computed if
238+ they later click the Restore button.
239+
240+ ** Kind** : global function
241+ <a name =" restoreIfMaximized " ></a >
242+
243+ ## restoreIfMaximized()
244+ Restore the container's CSS height to the pre-maximize value and clear maximize state.
245+ Must be called BEFORE Resizer.hide() so the Resizer reads the correct height.
246+ If not maximized, this is a no-op.
247+ When the saved height is near-max or unknown, a sensible default is used.
248+
249+ ** Kind** : global function
250+ <a name =" isMaximized " ></a >
251+
252+ ## isMaximized() ⇒ <code >boolean</code >
253+ Returns true if the bottom panel is currently maximized.
182254
255+ ** Kind** : global function
183256<a name =" getOpenBottomPanelIDs " ></a >
184257
185258## getOpenBottomPanelIDs() ⇒ <code >Array.< ; string> ; </code >
186259Returns a copy of the currently open bottom panel IDs in tab order.
187260
188- ** Kind** : global function
261+ ** Kind** : global function
189262<a name =" hideAllOpenPanels " ></a >
190263
191264## hideAllOpenPanels() ⇒ <code >Array.< ; string> ; </code >
192265Hides every open bottom panel tab in a single batch
193266
194- ** Kind** : global function
195- ** Returns** : <code >Array.< ; string> ; </code > - The IDs of panels that were open (useful for restoring later).
267+ ** Kind** : global function
268+ ** Returns** : <code >Array.< ; string> ; </code > - The IDs of panels that were open (useful for restoring later).
0 commit comments