ZForge.Controls.ExplorerBar.Expando.OnLocationChanged C# (CSharp) Method

OnLocationChanged() protected method

Raises the LocationChanged event
protected OnLocationChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void
        protected override void OnLocationChanged(EventArgs e)
        {
            base.OnLocationChanged(e);

            // sometimes the title image gets cropped (why???) if the
            // expando is scrolled from off-screen to on-screen so we'll
            // repaint the titlebar if the expando has a titlebar image
            // and it is taller then the titlebar
            if (this.TitleImage != null && this.TitleImageHeight > this.TitleBarHeight)
            {
                this.InvalidateTitleBar();
            }
        }