PDA

View Full Version : [CLOSED] Window cannot minimize



registrator
May 07, 2015, 8:00 PM
I have a window defined in a view as:



X.Window().ID("CustomerEdit")
.BodyStyle("background-color:transparent;")
.BodyCls("my-header")
.Layout(LayoutType.Fit)
.Width(970)
.Height(550)
.Icon(Icon.UserOrange)
.Title(Model.NAME)
.Border(true)
.Minimizable(true)


I return it from the controller as:


RecordViewModel viewModel = new RecordViewModel() ;
var view = new Ext.Net.MVC.PartialViewResult();
view.Model = viewModel;
view.ViewName = "Activity";

return view;

It has a minimize button but it does not minimize.

Thank you

Daniil
May 08, 2015, 6:01 AM
Hi @registrator,

Yes, .Minimizable(true) causes a minimizing tool to be appeared and clicking that tool executes a Window's minimize method, but the method is not implemented by default.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.Window-method-minimize