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
38972ac2
Commit
38972ac2
authored
Jan 06, 2011
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed DropDownList in wx2.8: should use wxPopupWindow::Show instead of wxWindow::Show
parent
ab06a423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/gui/drop_down_list.cpp
src/gui/drop_down_list.cpp
+2
-2
No files found.
src/gui/drop_down_list.cpp
View file @
38972ac2
...
...
@@ -136,7 +136,7 @@ void DropDownList::show(bool in_place, wxPoint pos, RealRect* rect) {
item_size
.
width
=
virtual_size
.
width
-
marginW
*
2
;
// is there enough room for all items, or do we need a scrollbar?
int
room_below
=
wxGetDisplaySize
().
y
-
border_size
.
height
-
pos
.
y
-
parent_height
-
50
;
int
max_height
=
max
(
2
00
,
room_below
);
int
max_height
=
max
(
3
00
,
room_below
);
if
(
size
.
height
>
max_height
)
{
size
.
height
=
max_height
;
size
.
width
+=
wxSystemSettings
::
GetMetric
(
wxSYS_VSCROLL_ARROW_X
);
// width of scrollbar
...
...
@@ -160,7 +160,7 @@ void DropDownList::show(bool in_place, wxPoint pos, RealRect* rect) {
if
(
selected_item
==
NO_SELECTION
&&
itemCount
()
>
0
)
selected_item
=
0
;
// select first item by default
mouse_down
=
false
;
close_on_mouse_out
=
false
;
Window
::
Show
();
wxPopup
Window
::
Show
();
if
(
isRoot
()
&&
GetParent
()
->
HasCapture
())
{
// release capture on parent
GetParent
()
->
ReleaseMouse
();
...
...
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