mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 03:57:23 +01:00
Cocoa/TabControl: clean up
This commit is contained in:
parent
0dc0c39f0e
commit
d4af394bac
@ -63,7 +63,6 @@ type
|
||||
{ various indexes in fulltabs }
|
||||
currentIndex : Integer; // index of the current tab
|
||||
visibleLeftIndex: Integer; // index shown in TabView on the left
|
||||
visibleRightIndex: Integer; // index shown in TabView on the right
|
||||
leftKeepAmount: Integer; // left tab amount to keep, equals currentIndex-visibleLeftIndex
|
||||
|
||||
procedure attachAllTabs; message 'attachAllTabs';
|
||||
@ -487,11 +486,9 @@ procedure TCocoaTabControl.updateVariousIndex;
|
||||
begin
|
||||
if numberOfTabViewItems > 0 then begin
|
||||
visibleLeftIndex:= fulltabs.indexOfObject( tabViewItemAtIndex(0) );
|
||||
visibleRightIndex:= visibleLeftIndex + numberOfTabViewItems - 1;
|
||||
leftKeepAmount:= currentIndex - visibleLeftIndex;
|
||||
end else begin
|
||||
visibleLeftIndex:= -1;
|
||||
visibleRightIndex:= -1;
|
||||
leftKeepAmount:= 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user