norgepaul / TChromeTabs

Comprehensive Delphi implementation of Chrome's tab system
Other
215 stars 78 forks source link

Tabs not immediately shifting after deleting tab #46

Closed djjd47130 closed 3 years ago

djjd47130 commented 8 years ago

Scenario: A number of tabs are open at once. I use the OnButtonCloseTabClick event, and I forcefully always set Close := False; here, and manually perform the deletion myself by calling Tabs.Tabs.Delete(TabIndex);.

The problem is that if I delete a tab in the middle of all the open tabs, that tab does get deleted, but then there's a big gap between the two tabs to the side, where that tab used to be. If I move the mouse around, or select another tab, then suddenly that empty space gets corrected.

djjd47130 commented 8 years ago

Is there any progress on this?

landrix commented 8 years ago

i will look at this

norgepaul commented 8 years ago

Thanks Sven.

On 24 June 2016 at 07:16, Sven Harazim notifications@github.com wrote:

i will look at this

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/norgepaul/TChromeTabs/issues/46#issuecomment-228260110, or mute the thread https://github.com/notifications/unsubscribe/AE10EQYt6Bdy2JXilEzMQ6DIxCPiUD3Fks5qO2hCgaJpZM4Gqtk- .

landrix commented 3 years ago

you must call

ChromeTabs1.Tabs.DeleteTab(indexToDelete,true);
ChromeTabs1.InvalidateAllControls;