mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-10-31 02:42:33 +01:00 
			
		
		
		
	anchordocking: really find MainIDE site in AdjustMainIDEWindowHeight.
git-svn-id: trunk@51347 -
This commit is contained in:
		
							parent
							
								
									ca7210f335
								
							
						
					
					
						commit
						be1b2f57c3
					
				| @ -42,7 +42,7 @@ uses | ||||
|   // LazUtils | ||||
|   LazFileCache, LazFileUtils, | ||||
|   // IdeIntf | ||||
|   LCLIntf, IDEWindowIntf, IDEOptionsIntf, | ||||
|   LCLIntf, IDEWindowIntf, IDEOptionsIntf, LazIDEIntf, | ||||
|   // AnchorDocking | ||||
|   AnchorDockStr, AnchorDocking, AnchorDesktopOptions, AnchorDockOptionsDlg; | ||||
| 
 | ||||
| @ -269,10 +269,13 @@ begin | ||||
|     if AIDEWindow.Controls[I] is TAnchorDockHostSite then | ||||
|     begin | ||||
|       Site := TAnchorDockHostSite(AIDEWindow.Controls[I]); | ||||
|     Break; | ||||
|       if (Site.Parent<>nil) and (Site.Parent=LazarusIDE.GetMainBar) then | ||||
|         Break // found | ||||
|       else | ||||
|         Site := nil; | ||||
|     end; | ||||
| 
 | ||||
|   if not Assigned(Site) then | ||||
|   if (Site=nil) or (Site.BoundSplitter=nil) then | ||||
|     Exit; | ||||
| 
 | ||||
|   Site.BoundSplitter.Enabled := not AAdjustHeight; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ondrej
						ondrej