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