NAV 2009 R2 Add-In problem resize panel in a page

SpycoclownSpycoclown Member Posts: 13
edited 2012-08-20 in NAV Three Tier
Hallo,

I have an Add-In it rezise when i pull the page bigger, the width size is working without any problem but the height isn't working.

If i make the page bigger in small steps it works but if maximize the page it cut off the half Add-In in the height, the width still work.

in my Add-In i have a the Event:
panel.Resize +=new EventHandler(panel_Resize);

and in the methode panel_Resize i have:
this.panel.Size = new Size(panel.Size.Width, (panel.Size.Width / 3));

if i put a MessageBox.Show(Convert.ToString(panel.Size.Height)); after the new Size it shows the right height but it don't update in the page.

maybe any one have an idea how i can get this problem solved.

With kind regards,
Leo

Comments

  • SogSog Member Posts: 1,023
    I don't know the Size constructor, but isen't that width and height?

    Because now I only see width and width as parameters
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • SpycoclownSpycoclown Member Posts: 13
    that's true, if i maximize the Page it only change the width. It never change the height so i have to cheat. and that is the problem.

    i want the width and the height to be changed but NAV only change the width so i use the width to change the height, it works but i have now the problem with the update of the page, that i still see the panel cut off at the height of the previous size, after change the size again it get show in the right way for 1 second and then it get cut off again.
  • SogSog Member Posts: 1,023
    after you set the height, do you call a redraw of the add-in?
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
Sign In or Register to comment.