This is a migrated thread and some comments may be shown as answers.

Problem with MinimizeZone?

3 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 24 Aug 2009, 02:06 PM
Hi there,

I try to minimize a RadWindow and it works fine as long as I don't use a MinimizeZoneId.

  var oWin = radopen("Report.aspx?r_Key=1", null);  
    
  // this could be browser specific...  
  oWin.setSize(document.body.clientWidth, document.body.clientHeight -100);  
  oWin.moveTo(0, 100);  
    
  oWin.set_behaviors( Telerik.Web.UI.WindowBehaviors.Resize +   
                      Telerik.Web.UI.WindowBehaviors.Minimize +  
                      Telerik.Web.UI.WindowBehaviors.Close +  
                      Telerik.Web.UI.WindowBehaviors.Maximize +  
                      Telerik.Web.UI.WindowBehaviors.Move );  
 

If I minimize, it is minimized in the current position, which is fine.

When I try to set the RadWindowManager property MinimizeZoneId, it obviously takes it into account but instead of a small minimized icon, I get something that does not look like anything but is in the right position and has the size of my window before minimizing...

Any hope, doctor?

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Aug 2009, 09:44 AM
Hello Eric,

I tried to reproduce the problem locally but to no avail - everything is working as expected on my side. I also noticed that you are using body.clientHeight - note that when working in XHTML environment, the height of the body is not the height of the viewport. In such case you should use document.documentElement.offsetHeight

I hope this helps. If you still experience problems, please open a support ticket and send me a sample project that I could check.

All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eric
Top achievements
Rank 1
answered on 25 Aug 2009, 09:48 AM
Hi Georgi,

Unfortunately, it is part of a complex main page and I am pretty sure I'd fail to reproduce on a small project.

For the moment, I have removed the minimize button and it's still looking quite good.

I'll see if I can think of things to try from time to time.



Thanks for trying


Eric
0
Georgi Tunev
Telerik team
answered on 25 Aug 2009, 10:13 AM
OK Eric,

Let us know if you manage to isolate the problem - we will be glad to help.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Eric
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Eric
Top achievements
Rank 1
Share this question
or