1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-10 17:34:07 +02:00

Eliminate a few post-launch frames of misaligned TweetDeck load icon

This commit is contained in:
chylex 2020-06-05 09:47:24 +02:00
parent e94e3cecf8
commit 9f5580d983
2 changed files with 9 additions and 0 deletions

View File

@ -146,6 +146,8 @@ public void ForceClose(){
private void RestoreWindow(){
Config.BrowserWindow.Restore(this, true);
browser.PrepareSize(ClientSize);
prevState = WindowState;
isLoaded = true;
}
@ -214,6 +216,7 @@ private void FormBrowser_ResizeEnd(object sender, EventArgs e){ // also triggers
}
timerResize.Stop();
browser.PrepareSize(ClientSize); // needed to pre-size browser control when launched in maximized state
if (Location != ControlExtensions.InvisibleLocation){
Config.BrowserWindow.Save(this);

View File

@ -91,6 +91,12 @@ public TweetDeckBrowser(FormBrowser owner, PluginManager plugins, TweetDeckBridg
// setup and management
public void PrepareSize(Size size){
if (!Ready){
browser.Size = size;
}
}
private void OnBrowserReady(){
if (!Ready){
browser.Location = Point.Empty;