mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fixed negative height bug in htmlOutputView
After dragging the HTML Output window down below the bottom of the main window it cannot be dragged back and negative height of HTML Output is saved to file.
This commit is contained in:
committed by
Allan Odgaard
parent
c7678e9f67
commit
19457ad2e8
@@ -73,7 +73,7 @@ OAK_DEBUG_VAR(DocumentController);
|
||||
|
||||
res["windowFrame"] = to_s(NSStringFromRect([self.window frame]));
|
||||
res["miniaturized"] = [self.window isMiniaturized];
|
||||
res["htmlOutputHeight"] = htmlOutputView ? (int32_t)NSHeight(htmlOutputView.frame) : htmlOutputHeight;
|
||||
res["htmlOutputHeight"] = htmlOutputView ? (int32_t)NSHeight(htmlOutputView.frame) > 0 ? (int32_t)NSHeight(htmlOutputView.frame) : 0 : htmlOutputHeight;
|
||||
res["fileBrowserVisible"] = !self.fileBrowserHidden;
|
||||
res["fileBrowserWidth"] = fileBrowser.view ? (int32_t)NSWidth(fileBrowser.view.frame) : fileBrowserWidth;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user