Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
c81123a3
Commit
c81123a3
authored
Dec 21, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
next time, save before you commit...
parent
bb69b4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
src/gui/control/tree_list.cpp
src/gui/control/tree_list.cpp
+2
-19
No files found.
src/gui/control/tree_list.cpp
View file @
c81123a3
...
@@ -263,30 +263,13 @@ void TreeList::onLeftDClick(wxMouseEvent& ev) {
...
@@ -263,30 +263,13 @@ void TreeList::onLeftDClick(wxMouseEvent& ev) {
// ----------------------------------------------------------------------------- : TreeList : Copy of VScrolledWindow
// ----------------------------------------------------------------------------- : TreeList : Copy of VScrolledWindow
void
TreeList
::
ScrollToLine
(
size_t
line
)
{
void
TreeList
::
ScrollToLine
(
size_t
line
)
{
// Based on VScrolledWindow::ScrollToLine
// determine the real first line to scroll to: we shouldn't scroll beyond the end
// determine the real first line to scroll to: we shouldn't scroll beyond the end
line
=
(
size_t
)
min
((
int
)
line
,
(
int
)(
total_lines
-
visible_lines_t
));
line
=
(
size_t
)
min
((
int
)
line
,
(
int
)(
total_lines
-
visible_lines_t
));
// nothing to do?
// nothing to do?
if
(
line
==
first_line
)
return
;
if
(
line
==
first_line
)
return
;
//%size_t first_line_old = first_line;
first_line
=
line
;
first_line
=
line
;
UpdateScrollbar
();
UpdateScrollbar
();
Refresh
(
false
);
Refresh
(
false
);
/*
// finally refresh the display -- but only redraw as few lines as possible to avoid flicker
wxSize cs = GetClientSize();
int dy = (int)(first_line_old - first_line) * item_height;
if (abs(dy) >= cs.y - header_height) {
Refresh(false);
} else {
wxRect rect(0, header_height, cs.x, cs.y - header_height);
ScrollWindow(0, dy, &rect);
}*/
}
}
void
TreeList
::
UpdateScrollbar
()
{
void
TreeList
::
UpdateScrollbar
()
{
...
...
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