Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
206
Issues
206
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
89f337a4
Commit
89f337a4
authored
Jan 31, 2011
by
louiz’
3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid crash if info_win_size is over the window height. fixed
#2114
parent
25fb16e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/tabs.py
src/tabs.py
+12
-0
No files found.
src/tabs.py
View file @
89f337a4
...
...
@@ -575,6 +575,8 @@ class MucTab(ChatTab):
Tab
.
resize
(
self
)
if
not
self
.
visible
:
return
if
self
.
core
.
information_win_size
>=
self
.
height
-
3
:
return
text_width
=
(
self
.
width
//
10
)
*
9
self
.
topic_win
.
resize
(
1
,
self
.
width
,
0
,
0
,
self
.
core
.
stdscr
)
self
.
text_win
.
resize
(
self
.
height
-
4
-
self
.
core
.
information_win_size
,
text_width
,
1
,
0
,
self
.
core
.
stdscr
)
...
...
@@ -656,6 +658,8 @@ class MucTab(ChatTab):
self
.
text_win
.
scroll_down
(
self
.
text_win
.
height
-
1
)
def
on_info_win_size_changed
(
self
):
if
self
.
core
.
information_win_size
>=
self
.
height
-
3
:
return
text_width
=
(
self
.
width
//
10
)
*
9
self
.
text_win
.
resize
(
self
.
height
-
4
-
self
.
core
.
information_win_size
,
text_width
,
1
,
0
,
self
.
core
.
stdscr
)
self
.
info_header
.
resize
(
1
,
(
self
.
width
//
10
)
*
9
,
self
.
height
-
3
-
self
.
core
.
information_win_size
,
0
,
self
.
core
.
stdscr
)
...
...
@@ -706,6 +710,8 @@ class PrivateTab(ChatTab):
Tab
.
resize
(
self
)
if
not
self
.
visible
:
return
if
self
.
core
.
information_win_size
>=
self
.
height
-
3
:
return
self
.
text_win
.
resize
(
self
.
height
-
3
-
self
.
core
.
information_win_size
,
self
.
width
,
0
,
0
,
self
.
core
.
stdscr
)
self
.
text_win
.
rebuild_everything
(
self
.
_room
)
self
.
info_header
.
resize
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
core
.
information_win_size
,
0
,
self
.
core
.
stdscr
)
...
...
@@ -757,6 +763,8 @@ class PrivateTab(ChatTab):
self
.
text_win
.
scroll_down
(
self
.
text_win
.
height
-
1
)
def
on_info_win_size_changed
(
self
):
if
self
.
core
.
information_win_size
>=
self
.
height
-
3
:
return
self
.
text_win
.
resize
(
self
.
height
-
3
-
self
.
core
.
information_win_size
,
self
.
width
,
0
,
0
,
self
.
core
.
stdscr
)
self
.
info_header
.
resize
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
core
.
information_win_size
,
0
,
self
.
core
.
stdscr
)
self
.
info_win
.
resize
(
self
.
core
.
information_win_size
,
self
.
width
,
self
.
height
-
2
-
self
.
core
.
information_win_size
,
0
,
self
.
core
.
stdscr
,
None
)
...
...
@@ -1084,6 +1092,8 @@ class ConversationTab(ChatTab):
Tab
.
resize
(
self
)
if
not
self
.
visible
:
return
if
self
.
core
.
information_win_size
>=
self
.
height
-
3
:
return
self
.
text_win
.
resize
(
self
.
height
-
4
-
self
.
core
.
information_win_size
,
self
.
width
,
1
,
0
,
self
.
core
.
stdscr
)
self
.
text_win
.
rebuild_everything
(
self
.
_room
)
self
.
upper_bar
.
resize
(
1
,
self
.
width
,
0
,
0
,
self
.
core
.
stdscr
)
...
...
@@ -1137,6 +1147,8 @@ class ConversationTab(ChatTab):
self
.
text_win
.
scroll_down
(
self
.
text_win
.
height
-
1
)
def
on_info_win_size_changed
(
self
):
if
self
.
core
.
information_win_size
>=
self
.
height
-
3
:
return
self
.
text_win
.
resize
(
self
.
height
-
3
-
self
.
core
.
information_win_size
,
self
.
width
,
0
,
0
,
self
.
core
.
stdscr
)
self
.
info_header
.
resize
(
1
,
self
.
width
,
self
.
height
-
3
-
self
.
core
.
information_win_size
,
0
,
self
.
core
.
stdscr
)
self
.
info_win
.
resize
(
self
.
core
.
information_win_size
,
self
.
width
,
self
.
height
-
2
-
self
.
core
.
information_win_size
,
0
,
self
.
core
.
stdscr
)
...
...
louiz’
@louiz
mentioned in issue
#2329 (closed)
·
Aug 21, 2018
mentioned in issue
#2329 (closed)
mentioned in issue #2329
Toggle commit list
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