mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:30:49 +00:00
Improve position of knob
This commit is contained in:
parent
6bf8d790ef
commit
8fd9db5130
1 changed files with 8 additions and 3 deletions
|
@ -898,12 +898,17 @@
|
|||
[backgroundColor set];
|
||||
if(value == NSControlStateValueOff)
|
||||
{
|
||||
rect = NSMakeRect(frame.origin.x + 4, frame.origin.y + 2, w - 2, frame.size.height - 6);
|
||||
rect = NSMakeRect(frame.origin.x + 4,
|
||||
frame.origin.y + 3,
|
||||
w - 2,
|
||||
frame.size.height - 6);
|
||||
}
|
||||
else
|
||||
{
|
||||
rect = NSMakeRect(frame.origin.x + ((frame.size.width - w) - 2), frame.origin.y + 2,
|
||||
w - 2, frame.size.height - 6);
|
||||
rect = NSMakeRect(frame.origin.x + ((frame.size.width - w) - 2),
|
||||
frame.origin.y + 3,
|
||||
w - 2,
|
||||
frame.size.height - 6);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue