Support docking the devtools on the right side of the window
This commit is contained in:
parent
001d0197de
commit
c22d1cca79
6 changed files with 28 additions and 0 deletions
|
@ -72,6 +72,19 @@ using namespace brightray;
|
|||
[_private->splitView adjustSubviews];
|
||||
}
|
||||
|
||||
- (BOOL)setDockSide:(const std::string&)side {
|
||||
if (side == "right") {
|
||||
_private->splitView.vertical = YES;
|
||||
} else if (side == "bottom") {
|
||||
_private->splitView.vertical = NO;
|
||||
} else {
|
||||
return NO;
|
||||
}
|
||||
|
||||
[_private->splitView adjustSubviews];
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation BRYInspectableWebContentsViewPrivate
|
||||
|
|
|
@ -8,5 +8,6 @@ class InspectableWebContentsViewMac;
|
|||
|
||||
- (instancetype)initWithInspectableWebContentsViewMac:(brightray::InspectableWebContentsViewMac *)inspectableWebContentsView;
|
||||
- (void)setDevToolsVisible:(BOOL)visible;
|
||||
- (BOOL)setDockSide:(const std::string&)side;
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue