Skip to content

Commit 8192707

Browse files
committed
Adding PR RobinPerris#48
Fix Issue RobinPerris#47 from cronoxyd:master
1 parent d806015 commit 8192707

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

DarkUI/Controls/DarkComboBox.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ protected override void OnEnabledChanged(EventArgs e)
116116

117117
private void PaintCombobox()
118118
{
119+
if( ClientRectangle.Width <= 0 || ClientRectangle.Height <= 0 )
120+
_buffer = new Bitmap(1, 1);
121+
119122
if (_buffer == null)
120123
_buffer = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);
121124

SOURCES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ These PRs came from RobinPerris' Repo
1313
2. #40 https://github.com/RobinPerris/DarkUI/pull/40
1414
- Fixed DarkComboBox disabled text color from janrobas:master
1515
3. #41 https://github.com/RobinPerris/DarkUI/pull/41
16-
- Fixed the display of the selected item in the combobox when changing its visibility from ricardodalarme:FixedComboBox
16+
- Fixed the display of the selected item in the combobox when changing its visibility from ricardodalarme:FixedComboBox
17+
4. #48 https://github.com/RobinPerris/DarkUI/pull/48
18+
- Fix Issue #47 from cronoxyd:master

0 commit comments

Comments
 (0)