Some splitter fixes:

- Use new isDocked() instead of looking inside widget
- Some CSS fixes
This commit is contained in:
Nathan Gray 2013-11-20 23:35:27 +00:00
parent e623ea8c82
commit f0279d44a3
2 changed files with 35 additions and 32 deletions

View File

@ -438,10 +438,12 @@ app.classes.mail = AppJS.extend(
var splitter = this.et2.getWidgetById('mailSplitter');
if (typeof splitter == 'undefined' || splitter == null) return;
var splitterDN = splitter.getDOMNode();
// check if DOM Node has class that contains docked; then we assume the bar docked, whatever our class var states
for (var i=0; i < splitterDN.childNodes[1].classList.length;i++) if (splitterDN.childNodes[1].classList[i].search(/docked/)>=0) this.mail_previewAreaActive = false;
//if this.mail_previewAreaActive but clientHeight of childNode is 0, assume this.mail_previewAreaActive incorrect
if ( this.mail_previewAreaActive && splitterDN.childNodes.length > 2 && splitterDN.childNodes[2].clientHeight < 15) this.mail_previewAreaActive=false;
if(splitter.isDocked())
{
this.mail_previewAreaActive = false;
}
//this.et2.getWidgetById('mailPreviewHeadersFrom').set_disabled(_value);
//this.et2.getWidgetById('mailPreviewHeadersTo').set_disabled(_value);
//this.et2.getWidgetById('mailPreviewHeadersDate').set_disabled(_value);

View File

@ -371,7 +371,8 @@ input[type=button] {
.mailDisplay, #mail-index_mailPreview {
overflow: hidden;
position: relative;
margin-top: 3px;
padding-top: 3px;
background-color: white;
}
#mail-compose_fileselector {
width: 245px !important;
@ -442,7 +443,7 @@ input[type=button] {
top: 25px;
border: 1px solid red;
opacity: 1;
-moz-opacity:1:
-moz-opacity:1;
filter: Alpha(opacity=100);
display: inline-block !important;
}
@ -488,7 +489,7 @@ input[type=button] {
bottom: .1em;
border: 1px solid red;
opacity: 1;
-moz-opacity:1:
-moz-opacity:1;
filter: Alpha(opacity=100);
}
/*