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()
.addClass('OxTextPage')
.css({
padding: '16px',
lineHeight: '16px',
overflowY: 'scroll',
MozUserSelect: 'text',
WebkitUserSelect: 'text'

View file

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

View file

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

View file

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

View file

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

View file

@ -106,6 +106,7 @@ pandora.ui.infoView = function(data) {
.appendTo($reflection),
$data = $('<div>')
.addClass('OxTextPage')
.css({
position: 'absolute',
left: margin + 'px',
@ -114,8 +115,8 @@ pandora.ui.infoView = function(data) {
})
.appendTo($left),
$center = Ox.Element({
})
$center = Ox.Element()
.addClass('OxTextPage')
.css({
position: 'absolute',
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;
var $tabPanel = Ox.TabPanel({
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') {
pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content);
} else if (id == 'news') {

View file

@ -12,7 +12,9 @@ pandora.ui.siteDialog = function(section) {
Ox.getObjectById(tabs, section).selected = true;
var $tabPanel = Ox.TabPanel({
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') {
pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content);
} else if (id == 'news') {