Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
169
Issues
169
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
534b39ae
Commit
534b39ae
authored
Sep 14, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the resize of PrivateTab
parent
33f197b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
src/tab.py
src/tab.py
+12
-8
src/window.py
src/window.py
+0
-1
No files found.
src/tab.py
View file @
534b39ae
...
@@ -23,7 +23,7 @@ Window are displayed, etc
...
@@ -23,7 +23,7 @@ Window are displayed, etc
"""
"""
MIN_WIDTH
=
50
MIN_WIDTH
=
50
MIN_HEIGHT
=
1
0
MIN_HEIGHT
=
1
6
import
window
import
window
import
theme
import
theme
...
@@ -297,16 +297,17 @@ class PrivateTab(Tab):
...
@@ -297,16 +297,17 @@ class PrivateTab(Tab):
Tab
.
__init__
(
self
,
stdscr
)
Tab
.
__init__
(
self
,
stdscr
)
self
.
info_win_size
=
info_win_size
self
.
info_win_size
=
info_win_size
self
.
_room
=
room
self
.
_room
=
room
self
.
text_win
=
window
.
TextWin
(
self
.
height
-
2
,
self
.
width
,
0
,
0
,
stdscr
,
self
.
visible
)
self
.
text_win
=
window
.
TextWin
(
self
.
height
-
2
-
self
.
info_win_size
,
self
.
width
,
0
,
0
,
stdscr
,
self
.
visible
)
self
.
info_header
=
window
.
PrivateInfoWin
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_header
=
window
.
PrivateInfoWin
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_win
=
window
.
TextWin
(
info_win_size
,
(
self
.
width
//
10
)
*
9
,
self
.
height
-
2
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_win
=
window
.
TextWin
(
self
.
info_win_size
,
self
.
width
,
self
.
height
-
2
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
tab_win
=
window
.
GlobalInfoBar
(
1
,
self
.
width
,
self
.
height
-
2
,
0
,
stdscr
,
self
.
visible
)
self
.
tab_win
=
window
.
GlobalInfoBar
(
1
,
self
.
width
,
self
.
height
-
2
,
0
,
stdscr
,
self
.
visible
)
self
.
input
=
window
.
Input
(
1
,
self
.
width
,
self
.
height
-
1
,
0
,
stdscr
,
self
.
visible
)
self
.
input
=
window
.
Input
(
1
,
self
.
width
,
self
.
height
-
1
,
0
,
stdscr
,
self
.
visible
)
def
resize
(
self
,
stdscr
):
def
resize
(
self
,
stdscr
):
self
.
text_win
.
resize
(
self
.
height
-
2
,
self
.
width
,
0
,
0
,
stdscr
,
self
.
visible
)
Tab
.
resize
(
self
,
stdscr
)
self
.
text_win
.
resize
(
self
.
height
-
2
-
self
.
info_win_size
,
self
.
width
,
0
,
0
,
stdscr
,
self
.
visible
)
self
.
info_header
.
resize
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_header
.
resize
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_win
.
resize
(
info_win_size
,
(
self
.
width
//
10
)
*
9
,
self
.
height
-
2
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_win
.
resize
(
self
.
info_win_size
,
self
.
width
,
self
.
height
-
2
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
tab_win
.
resize
(
1
,
self
.
width
,
self
.
height
-
2
,
0
,
stdscr
,
self
.
visible
)
self
.
tab_win
.
resize
(
1
,
self
.
width
,
self
.
height
-
2
,
0
,
stdscr
,
self
.
visible
)
self
.
input
.
resize
(
1
,
self
.
width
,
self
.
height
-
1
,
0
,
stdscr
,
self
.
visible
)
self
.
input
.
resize
(
1
,
self
.
width
,
self
.
height
-
1
,
0
,
stdscr
,
self
.
visible
)
...
@@ -348,10 +349,13 @@ class PrivateTab(Tab):
...
@@ -348,10 +349,13 @@ class PrivateTab(Tab):
def
on_info_win_size_changed
(
self
,
size
,
stdscr
):
def
on_info_win_size_changed
(
self
,
size
,
stdscr
):
self
.
info_win_size
=
size
self
.
info_win_size
=
size
text_width
=
(
self
.
width
//
10
)
*
9
self
.
text_win
.
resize
(
self
.
height
-
2
,
self
.
width
,
0
,
0
,
stdscr
,
self
.
visible
)
self
.
text_win
.
resize
(
self
.
height
-
4
-
self
.
info_win_size
,
text_width
,
1
,
0
,
stdscr
,
self
.
visible
)
self
.
info_header
.
resize
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_header
.
resize
(
1
,
(
self
.
width
//
10
)
*
9
,
self
.
height
-
3
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_win
.
resize
(
self
.
info_win_size
,
(
self
.
width
//
10
)
*
9
,
self
.
height
-
2
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
self
.
info_win
.
resize
(
self
.
info_win_size
,
(
self
.
width
//
10
)
*
9
,
self
.
height
-
2
-
self
.
info_win_size
,
0
,
stdscr
,
self
.
visible
)
# self.text_win.resize(self.height-4-self.info_win_size, text_width, 1, 0, stdscr, self.visible)
# self.info_header.resize(1, (self.width//10)*9, self.height-3-self.info_win_size, 0, stdscr, self.visible)
# self.info_win.resize(self.info_win_size, (self.width//10)*9, self.height-2-self.info_win_size, 0, stdscr, self.visible)
def
get_room
(
self
):
def
get_room
(
self
):
return
self
.
_room
return
self
.
_room
src/window.py
View file @
534b39ae
...
@@ -908,7 +908,6 @@ class VerticalSeparator(Win):
...
@@ -908,7 +908,6 @@ class VerticalSeparator(Win):
self
.
_resize
(
height
,
width
,
y
,
x
,
stdscr
)
self
.
_resize
(
height
,
width
,
y
,
x
,
stdscr
)
if
not
visible
:
if
not
visible
:
return
return
self
.
rewrite_line
()
def
refresh
(
self
):
def
refresh
(
self
):
if
not
self
.
visible
:
if
not
self
.
visible
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment