Skip to content

Commit

Permalink
[Fixed] eSlider rendering when corner radius and borders present
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored and Huevos committed Jan 20, 2024
1 parent 74dae03 commit 1850857
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/gui/eslider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ int eSlider::event(int event, void *data, void *data2)
painter.setRadius(cornerRadius, getCornerRadiusEdges());
eRect rect = eRect(m_currently_filled.extends);
if (m_orientation == orHorizontal)
rect.setHeight(size().height()-m_border_width*2);
rect.setHeight(size().height()-m_border_width);
else
rect.setWidth(size().width()-m_border_width*2);
rect.setWidth(size().width()-m_border_width);
rect.setX(m_border_width);
rect.setY(m_border_width);
painter.drawRectangle(rect);
}
else {
Expand Down

0 comments on commit 1850857

Please sign in to comment.