Unplanned
Last Updated: 29 Mar 2016 12:14 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 10 Sep 2015 08:34
Category: Dock
Type: Bug Report
1
FIX. RadDock - auto-hide popup for ToolWindow is not positioned correctly when the form is initially maximized
To reproduce:

Sub New()
    InitializeComponent()

    Me.WindowState = FormWindowState.Maximized
    Dim leftWindow As ToolWindow = New ToolWindow()
    leftWindow.Text = "Left Window"
    Me.RadDock1.DockWindow(leftWindow, DockPosition.Left)
    leftWindow.DockState = DockState.AutoHide
End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    If Me.RadDock1.DockWindows.ToolWindows.First().ParentForm IsNot Nothing Then
        Me.RadDock1.DockWindows.ToolWindows.First().ParentForm.Show()
    End If
End Sub

Workaround: maximize the form after the auto-hide popup is shown:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    If Me.RadDock1.DockWindows.ToolWindows.First().ParentForm IsNot Nothing Then
        Me.RadDock1.DockWindows.ToolWindows.First().ParentForm.Show()
    End If
    Me.WindowState = FormWindowState.Maximized
End Sub
Attached Files:
0 comments