Recent Posts by Cerberus

Subscribe to Recent Posts by Cerberus 8 post(s) found

Apr 17, 2008
Avatar Cerberus 8 post(s)

Topic: Window / Overlay Style Hard coded?

Why is this overlayStyle hard code? Should it be defined in the style sheets?

overlayStyle: "position: absolute; top: 0; left: 0; display: none; width: 100%;",
createOverlays: function() {
  this.modalOverlay = new Element("div", { style: this.overlayStyle });
  this.dragOverlay  = new Element("div", { style: this.overlayStyle+"height: 100%" });
  this.iframe       = Prototype.Browser.IE ? new UI.IframeShim() : null;
}
 
Apr 17, 2008
Avatar Cerberus 8 post(s)

Topic: Window / Window constrains

This is the Closed I’ve gotten to it, Might be able to add it into the options for building the window

var viewPoint = { top : 0, left: 0 };

UI.Window.addMethods({ moveDrag: function(dx, dy) { var t = this.initBounds.top + dy; var l = this.initBounds.left + dx; if(this.getPosition().top <= viewPoint.top) t = viewPoint.top + 1; if(this.getPosition().left <= viewPoint.left) l = viewPoint.left + 1; this.setPosition(t, l); }
}

 
Apr 17, 2008
Avatar Cerberus 8 post(s)

Topic: Carousel / Multiple Carousels

Can you supply an code example, I’ve been able to get multiple Carousels work however I did need them to have different styles

 
Apr 3, 2008
Avatar Cerberus 8 post(s)

Topic: Window / observe("blurred")

don’t do the Above with a Ajax Dialog, for some reason the Dialog Box doesn’t have focus; in other words as soon as the window opens it’ll close. Work around is to request your content and use setContent in your dialog rather then setAjaxContent.

 
Apr 1, 2008
Avatar Cerberus 8 post(s)

Topic: Window / Problem with Dialog

You need to set the top position on the dialog, center will send the page to the top of the web page. As for the visible issue can’t help you with out seeing the code.

 
Mar 31, 2008
Avatar Cerberus 8 post(s)

Topic: Window / Adapt on a dialog window

Trying to use adapt() on a dialog window unfortunately it appears that adapt doesn’t take into account the buttons that are add to the window so I end up with a scroll bar. Is there anyway to correct this?

 
Mar 19, 2008
Avatar Cerberus 8 post(s)

Topic: Window / check for hidden windows

if(!$(‘WinID’)){
WINDOW IS NOT OPEN SO OPEN IT
}ELSE{
UI.defaultWM.getWindow(‘WinID’).bringToFront().focus();
}

 
Jan 8, 2008
Avatar Cerberus 8 post(s)

Topic: Window / Adjust Winodw options

Would it be possible to adjust the windows option (lets say ‘draggable’) after the window is loaded. The reason I ask is I’m play around with opening a window(w2) within a windows(w1), the problem is that when you drag w2 w1 moves need to fire event onmousedown w2 to set w1 draggabe to false.