Skip to content

Commit

Permalink
Fixed utils method calls [#19 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Leveille committed Jan 29, 2009
1 parent 352390e commit f260523
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion smc/core/admin/index.php
Expand Up @@ -99,7 +99,7 @@
SMC_ADMIN.oFCKeditor = new FCKeditor('baiEditor');
SMC_ADMIN.oFCKeditor.BasePath = "<?php echo SMC_FCK_REL; ?>/";
SMC_ADMIN.oFCKeditor.ToolbarSet = "SMC";
SMC_ADMIN.oFCKeditor.Height = smc_client.viewportHeight - 200;
SMC_ADMIN.oFCKeditor.Height = smc_client.viewportHeight() - 200;

//remove load mask
setTimeout(function(){
Expand Down
8 changes: 4 additions & 4 deletions smc/core/admin/javascripts/ContentGrid.js
Expand Up @@ -289,7 +289,7 @@ Ext.extend(ContentGrid, Ext.grid.EditorGridPanel, {
name: 'baiEditor',
fieldLabel: 'Content',
allowBlank: false,
height: smc_client.viewportHeight - 200,
height: smc_client.viewportHeight() - 200,
value: '<p>Temporary data holder.</p>',
anchor: '96%'
});
Expand All @@ -298,7 +298,7 @@ Ext.extend(ContentGrid, Ext.grid.EditorGridPanel, {
labelWidth: 80, // label settings here cascade unless overridden
bodyStyle: 'padding:10px',
autoWidth: true,
height: smc_client.viewportHeight - 110,
height: smc_client.viewportHeight() - 110,
border: false,
autoDestroy: false,
labelPad: 10,
Expand Down Expand Up @@ -335,9 +335,9 @@ Ext.extend(ContentGrid, Ext.grid.EditorGridPanel, {
shadow: true,
modal: true,
minWidth: 800,
width: smc_client.viewportWidth - 100,
width: smc_client.viewportWidth() - 100,
minHeight: 500,
height: smc_client.viewportHeight - 60,
height: smc_client.viewportHeight() - 60,
resizable: true,
layout: 'border',
items: [this.panel],
Expand Down
2 changes: 1 addition & 1 deletion smc/core/libraries/javascripts/smc.js
Expand Up @@ -133,7 +133,7 @@ SMC = function(){
Ext.get(SMC.editorName + '___Frame').setHeight(dialog.getInnerHeight());
}, this);

dialog.setSize(window.innerWidth - 100, window.innerHeight - 60)
dialog.setSize(smc_client.viewportWidth() - 100, smc_client.viewportHeight() - 60)
.setTitle("Content Editor " + $this.title)
.show($this);
}
Expand Down
2 changes: 1 addition & 1 deletion smc/core/support/includes/smc_javascripts.inc.php
Expand Up @@ -26,7 +26,7 @@
oFCKeditor = new FCKeditor(SMC.editorName);
oFCKeditor.BasePath = "<?php echo SMC_FCK_REL; ?>/"
oFCKeditor.ToolbarSet = "SMC";
oFCKeditor.Height = smc_client.viewportHeight - 130;
oFCKeditor.Height = smc_client.viewportHeight() - 130;
oFCKeditor.ReplaceTextarea();

SMC.init();
Expand Down

0 comments on commit f260523

Please sign in to comment.