use OxTextPage class in info view and site/help/icon dialogs

This commit is contained in:
rolux 2013-03-08 03:49:55 +00:00
parent 0b6f8fe009
commit c1bf737ee0
8 changed files with 15 additions and 7 deletions

View file

@ -115,9 +115,9 @@ pandora.ui.helpDialog = function() {
}); });
$text = Ox.Element() $text = Ox.Element()
.addClass('OxTextPage')
.css({ .css({
padding: '16px', padding: '16px',
lineHeight: '16px',
overflowY: 'scroll', overflowY: 'scroll',
MozUserSelect: 'text', MozUserSelect: 'text',
WebkitUserSelect: 'text' WebkitUserSelect: 'text'

View file

@ -22,6 +22,7 @@ pandora.ui.iconDialog = function(options) {
) )
.append( .append(
$('<div>') $('<div>')
.addClass('OxTextPage')
.css({position: 'absolute', left: '96px', top: '16px', width: options.width - 112 + 'px'}) .css({position: 'absolute', left: '96px', top: '16px', width: options.width - 112 + 'px'})
.html(options.text) .html(options.text)
), ),

View file

@ -115,6 +115,7 @@ pandora.ui.infoView = function(data) {
.appendTo($reflection), .appendTo($reflection),
$text = Ox.Element() $text = Ox.Element()
.addClass('OxTextPage')
.css({ .css({
position: 'absolute', position: 'absolute',
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px', left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',

View file

@ -117,6 +117,7 @@ pandora.ui.infoView = function(data) {
.appendTo($reflection), .appendTo($reflection),
$text = Ox.Element() $text = Ox.Element()
.addClass('OxTextPage')
.css({ .css({
position: 'absolute', position: 'absolute',
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px', left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',

View file

@ -107,8 +107,8 @@ pandora.ui.infoView = function(data) {
}) })
.appendTo($left), .appendTo($left),
$center = Ox.Element({ $center = Ox.Element()
}) .addClass('OxTextPage')
.css({ .css({
position: 'absolute', position: 'absolute',
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px', left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',

View file

@ -106,6 +106,7 @@ pandora.ui.infoView = function(data) {
.appendTo($reflection), .appendTo($reflection),
$data = $('<div>') $data = $('<div>')
.addClass('OxTextPage')
.css({ .css({
position: 'absolute', position: 'absolute',
left: margin + 'px', left: margin + 'px',
@ -114,8 +115,8 @@ pandora.ui.infoView = function(data) {
}) })
.appendTo($left), .appendTo($left),
$center = Ox.Element({ $center = Ox.Element()
}) .addClass('OxTextPage')
.css({ .css({
position: 'absolute', position: 'absolute',
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px', left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',

View file

@ -12,7 +12,9 @@ pandora.ui.siteDialog = function(section) {
Ox.getObjectById(tabs, section).selected = true; Ox.getObjectById(tabs, section).selected = true;
var $tabPanel = Ox.TabPanel({ var $tabPanel = Ox.TabPanel({
content: function(id) { content: function(id) {
var $content = Ox.Element().css({padding: '16px', overflowY: 'auto'}); var $content = Ox.Element()
.addClass('OxTextPage')
.css({padding: '16px', overflowY: 'auto'});
if (id == 'contact') { if (id == 'contact') {
pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content); pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content);
} else if (id == 'news') { } else if (id == 'news') {

View file

@ -12,7 +12,9 @@ pandora.ui.siteDialog = function(section) {
Ox.getObjectById(tabs, section).selected = true; Ox.getObjectById(tabs, section).selected = true;
var $tabPanel = Ox.TabPanel({ var $tabPanel = Ox.TabPanel({
content: function(id) { content: function(id) {
var $content = Ox.Element().css({padding: '16px', overflowY: 'auto'}); var $content = Ox.Element()
.addClass('OxTextPage')
.css({padding: '16px', overflowY: 'auto'});
if (id == 'contact') { if (id == 'contact') {
pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content); pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content);
} else if (id == 'news') { } else if (id == 'news') {