mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 21:49:17 +02:00
Cocoa/ListView: improve CaptionEditor, Merge branch 'cocoa/list'
This commit is contained in:
parent
ea8d2f0279
commit
d9ab162b23
@ -375,8 +375,8 @@ begin
|
||||
cocoaItem.textField.setFrame( aFrame );
|
||||
|
||||
if Assigned(checkBox) then begin
|
||||
aFrame.size.width:= 18;
|
||||
aFrame.size.height:= 18;
|
||||
checkBox.sizeToFit;
|
||||
aFrame.size:= checkBox.frame.size;
|
||||
aFrame.origin.x:= 6;
|
||||
aFrame.origin.y:= round( (cv.itemSize.Height - aFrame.size.height ) / 2 + 5 );
|
||||
checkBox.setFrame( aFrame );
|
||||
@ -458,8 +458,8 @@ begin
|
||||
cocoaItem.textField.setFrame( aFrame );
|
||||
|
||||
if Assigned(checkBox) then begin
|
||||
aFrame.size.width:= 18;
|
||||
aFrame.size.height:= 18;
|
||||
checkBox.sizeToFit;
|
||||
aFrame.size:= checkBox.frame.size;
|
||||
aFrame.origin.x:= 6;
|
||||
aFrame.origin.y:= round( (cv.itemSize.Height - aFrame.size.height ) / 2 );
|
||||
checkBox.setFrame( aFrame );
|
||||
@ -518,8 +518,8 @@ begin
|
||||
cocoaItem.textField.setFrame( aFrame );
|
||||
|
||||
if Assigned(checkBox) then begin
|
||||
aFrame.size.width:= 18;
|
||||
aFrame.size.height:= 18;
|
||||
checkBox.sizeToFit;
|
||||
aFrame.size:= checkBox.frame.size;
|
||||
aFrame.origin.x:= 6;
|
||||
aFrame.origin.y:= round( (cv.itemSize.Height - aFrame.size.height ) / 2 );
|
||||
checkBox.setFrame( aFrame );
|
||||
|
Loading…
Reference in New Issue
Block a user