Skip to content

Commit dc909b1

Browse files
committed
Adjust scrolling
1 parent 4710c8a commit dc909b1

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

lib/unified/php-debug-unified-view.coffee

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ class PhpDebugUnifiedView extends ScrollView
1717
@button class: "btn octicon icon-sign-out inline-block-tight", disabled: 'disabled', 'data-action':'out', "Step Out"
1818
@button class: "btn octicon icon-primitive-square inline-block-tight", disabled: 'disabled', 'data-action':'stop', "Stop"
1919
@span outlet: 'connectStatus'
20-
@div class: 'tabs-view', =>
21-
@div outlet: 'stackView', class:'php-debug-tab'
22-
@div outlet: 'contextView', class:'php-debug-tab'
23-
@div outlet: 'watchpointView', class:'php-debug-tab'
24-
@div outlet: 'breakpointView', class:'php-debug-tab'
20+
@div class: 'tabs-wrapper', outlet:'tabsWrapper', =>
21+
@div class: 'tabs-view', =>
22+
@div outlet: 'stackView', class:'php-debug-tab'
23+
@div outlet: 'contextView', class:'php-debug-tab'
24+
@div outlet: 'watchpointView', class:'php-debug-tab'
25+
@div outlet: 'breakpointView', class:'php-debug-tab'
2526

2627
constructor: (params) ->
2728
super
@@ -35,7 +36,7 @@ class PhpDebugUnifiedView extends ScrollView
3536
@find('button').disable()
3637

3738
Interact(this.element).resizable({edges: { top: true }})
38-
.on('resizemove', (event) ->
39+
.on('resizemove', (event) =>
3940
target = event.target
4041
if event.rect.height < 25
4142
if event.rect.height < 1
@@ -45,6 +46,7 @@ class PhpDebugUnifiedView extends ScrollView
4546
else
4647
target.style.width = event.rect.width + 'px'
4748
target.style.height = event.rect.height + 'px'
49+
@find('.tabs-wrapper').css('height',event.rect.height + 'px')
4850
)
4951
.on('resizeend', (event) ->
5052
event.target.style.width = 'auto'
@@ -68,6 +70,7 @@ class PhpDebugUnifiedView extends ScrollView
6870
setConnected: (isConnected) =>
6971
if (@panel?.item?.clientHeight > 0)
7072
@panel?.item?.style.height = @panel?.item?.clientHeight + 'px'
73+
@find('.tabs-wrapper').css('height',@panel?.item?.clientHeight + 'px')
7174

7275
if isConnected
7376
@connectStatus.text('Connected')

styles/php-debug.less

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
@import "ui-variables";
66

77
.php-debug {
8-
overflow-y: scroll;
8+
overflow-y: hidden;
99
.php-debug-tab
1010
{
1111
flex:1;
1212
overflow-y: scroll;
13+
}
14+
.tabs-wrapper {
15+
1316
}
1417
.breakpoint-line
1518
{
@@ -106,7 +109,8 @@ atom-panel.modal .breakpoint-settings-view .setting-new atom-text-editor[mini] {
106109
.tabs-view {
107110

108111
display: flex;
109-
height: 100%
112+
height: 100%;
113+
padding-bottom: 75px;
110114
}
111115

112116
.tabs-view:nth-child(1) {

0 commit comments

Comments
 (0)