<style>
<category name="layout" displayName="Layout" brief="%position%">
<property name="position" type="position@position" displayName="Position" deafult=""></property>
+ <property name="display" type="display@display" displayName="Display" deafult="inline"></property>
</category>
<category name="dimension" displayName="Dimension" brief="%left%,%top%,%width%,%height%">
<property name="left" type="size" displayName="Left" default="auto" inline="true"></property>
<constant value="static" displayName="static" />
<constant value="fixed" displayName="fixed" />
</type>
+ <type id="display@display">
+ <constant value="" displayName="(None)"/>
+ <constant value="none" displayName="none"/>
+ <constant value="inline" displayName="inline"/>
+ <constant value="initial" displayName="initial"/>
+ <constant value="inherit" displayName="inherit"/>
+ <constant value="block" displayName="block"/>
+ <constant value="flex" displayName="flex"/>
+ <constant value="inline-block" displayName="inline-block"/>
+ <constant value="inline-flex" displayName="inline-flex"/>
+ <constant value="inline-table" displayName="inline-table"/>
+ <constant value="list-item" displayName="list-item"/>
+ <constant value="run-in" displayName="run-in"/>
+ <constant value="table" displayName="table"/>
+ <constant value="table-caption" displayName="table-caption"/>
+ <constant value="table-column-group" displayName="table-column-group"/>
+ <constant value="table-header-group" displayName="table-header-group"/>
+ <constant value="table-footer-group" displayName="table-footer-group"/>
+ <constant value="table-row-group" displayName="table-row-group"/>
+ <constant value="table-cell" displayName="table-cell"/>
+ <constant value="table-column" displayName="table-column"/>
+ <constant value="table-row" displayName="table-row"/>
+ </type>
<type id="background@repeat">
<constant value="" displayName="(None)" />
</type>
<type id="attrtext@databinding">
- <constant value="attr" displayName="form"/>
- <constant value="attr" displayName="for"/>
<constant value="text" displayName=""/>
+ <constant value="attr" displayName="for"/>
+ <constant value="attr" displayName="form"/>
</type>
</types>
\ No newline at end of file
function getClientBound() {
var wgt = $(".ui-scrollview-view");
var loc = wgt.offset();
+ var pos = wgt.position();
// var head_height = $('[data-role=header]').outerHeight();
// var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getWindowBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var head_height = $('[data-role=header]').outerHeight();
var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getPageBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var content_width = $(window).width();
var content_height = $(window).height();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
return bound;
}
function getOneWidgetBound(wgt) {
var loc = wgt.offset();
+ var pos = wgt.position();
var origin = wgt.css("-webkit-transform-origin").split(" ");
var bound = {
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height()),
transform : wgt.css("-webkit-transform"),
transformOriginX : parseFloat(origin[0]),
transformOriginY : parseFloat(origin[1]),
<style>
<category name="layout" displayName="Layout" brief="%position%">
<property name="position" type="position@position" displayName="Position" deafult=""></property>
+ <property name="display" type="display@display" displayName="Display" deafult="inline"></property>
</category>
<category name="dimension" displayName="Dimension" brief="%left%,%top%,%width%,%height%">
<property name="left" type="size" displayName="Left" default="auto" inline="true"></property>
<constant value="static" displayName="static" />
<constant value="fixed" displayName="fixed" />
</type>
+ <type id="display@display">
+ <constant value="" displayName="(None)"/>
+ <constant value="none" displayName="none"/>
+ <constant value="inline" displayName="inline"/>
+ <constant value="initial" displayName="initial"/>
+ <constant value="inherit" displayName="inherit"/>
+ <constant value="block" displayName="block"/>
+ <constant value="flex" displayName="flex"/>
+ <constant value="inline-block" displayName="inline-block"/>
+ <constant value="inline-flex" displayName="inline-flex"/>
+ <constant value="inline-table" displayName="inline-table"/>
+ <constant value="list-item" displayName="list-item"/>
+ <constant value="run-in" displayName="run-in"/>
+ <constant value="table" displayName="table"/>
+ <constant value="table-caption" displayName="table-caption"/>
+ <constant value="table-column-group" displayName="table-column-group"/>
+ <constant value="table-header-group" displayName="table-header-group"/>
+ <constant value="table-footer-group" displayName="table-footer-group"/>
+ <constant value="table-row-group" displayName="table-row-group"/>
+ <constant value="table-cell" displayName="table-cell"/>
+ <constant value="table-column" displayName="table-column"/>
+ <constant value="table-row" displayName="table-row"/>
+ </type>
<type id="background@repeat">
<constant value="" displayName="(None)" />
</type>
<type id="attrtext@databinding">
- <constant value="attr" displayName="form"/>
- <constant value="attr" displayName="for"/>
<constant value="text" displayName=""/>
+ <constant value="attr" displayName="for"/>
+ <constant value="attr" displayName="form"/>
</type>
</types>
\ No newline at end of file
function getClientBound() {
var wgt = $(".ui-scrollview-view");
var loc = wgt.offset();
+ var pos = wgt.position();
// var head_height = $('[data-role=header]').outerHeight();
// var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getWindowBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var head_height = $('[data-role=header]').outerHeight();
var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getPageBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var content_width = $(window).width();
var content_height = $(window).height();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
return bound;
}
function getOneWidgetBound(wgt) {
var loc = wgt.offset();
+ var pos = wgt.position();
var origin = wgt.css("-webkit-transform-origin").split(" ");
var bound = {
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height()),
transform : wgt.css("-webkit-transform"),
transformOriginX : parseFloat(origin[0]),
transformOriginY : parseFloat(origin[1]),
<style>
<category name="layout" displayName="Layout" brief="%position%">
<property name="position" type="position@position" displayName="Position" deafult=""></property>
+ <property name="display" type="display@display" displayName="Display" deafult="inline"></property>
</category>
<category name="dimension" displayName="Dimension" brief="%left%,%top%,%width%,%height%">
<property name="left" type="size" displayName="Left" default="auto" inline="true"></property>
<constant value="static" displayName="static" />
<constant value="fixed" displayName="fixed" />
</type>
+ <type id="display@display">
+ <constant value="" displayName="(None)"/>
+ <constant value="none" displayName="none"/>
+ <constant value="inline" displayName="inline"/>
+ <constant value="initial" displayName="initial"/>
+ <constant value="inherit" displayName="inherit"/>
+ <constant value="block" displayName="block"/>
+ <constant value="flex" displayName="flex"/>
+ <constant value="inline-block" displayName="inline-block"/>
+ <constant value="inline-flex" displayName="inline-flex"/>
+ <constant value="inline-table" displayName="inline-table"/>
+ <constant value="list-item" displayName="list-item"/>
+ <constant value="run-in" displayName="run-in"/>
+ <constant value="table" displayName="table"/>
+ <constant value="table-caption" displayName="table-caption"/>
+ <constant value="table-column-group" displayName="table-column-group"/>
+ <constant value="table-header-group" displayName="table-header-group"/>
+ <constant value="table-footer-group" displayName="table-footer-group"/>
+ <constant value="table-row-group" displayName="table-row-group"/>
+ <constant value="table-cell" displayName="table-cell"/>
+ <constant value="table-column" displayName="table-column"/>
+ <constant value="table-row" displayName="table-row"/>
+ </type>
<type id="background@repeat">
<constant value="" displayName="(None)" />
</type>
<type id="attrtext@databinding">
- <constant value="attr" displayName="form"/>
- <constant value="attr" displayName="for"/>
<constant value="text" displayName=""/>
+ <constant value="attr" displayName="for"/>
+ <constant value="attr" displayName="form"/>
</type>
</types>
\ No newline at end of file
function getClientBound() {
var wgt = $(".ui-scrollview-view");
var loc = wgt.offset();
+ var pos = wgt.position();
// var head_height = $('[data-role=header]').outerHeight();
// var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getWindowBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var head_height = $('[data-role=header]').outerHeight();
var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getPageBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var content_width = $(window).width();
var content_height = $(window).height();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
return bound;
}
function getOneWidgetBound(wgt) {
var loc = wgt.offset();
+ var pos = wgt.position();
var origin = wgt.css("-webkit-transform-origin").split(" ");
var bound = {
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height()),
transform : wgt.css("-webkit-transform"),
transformOriginX : parseFloat(origin[0]),
transformOriginY : parseFloat(origin[1]),
<style>
<category name="layout" displayName="Layout" brief="%position%">
<property name="position" type="position@position" displayName="Position" deafult=""></property>
+ <property name="display" type="display@display" displayName="Display" deafult="inline"></property>
</category>
<category name="dimension" displayName="Dimension" brief="%left%,%top%,%width%,%height%">
<property name="left" type="size" displayName="Left" default="auto" inline="true"></property>
<constant value="static" displayName="static" />
<constant value="fixed" displayName="fixed" />
</type>
+ <type id="display@display">
+ <constant value="" displayName="(None)"/>
+ <constant value="none" displayName="none"/>
+ <constant value="inline" displayName="inline"/>
+ <constant value="initial" displayName="initial"/>
+ <constant value="inherit" displayName="inherit"/>
+ <constant value="block" displayName="block"/>
+ <constant value="flex" displayName="flex"/>
+ <constant value="inline-block" displayName="inline-block"/>
+ <constant value="inline-flex" displayName="inline-flex"/>
+ <constant value="inline-table" displayName="inline-table"/>
+ <constant value="list-item" displayName="list-item"/>
+ <constant value="run-in" displayName="run-in"/>
+ <constant value="table" displayName="table"/>
+ <constant value="table-caption" displayName="table-caption"/>
+ <constant value="table-column-group" displayName="table-column-group"/>
+ <constant value="table-header-group" displayName="table-header-group"/>
+ <constant value="table-footer-group" displayName="table-footer-group"/>
+ <constant value="table-row-group" displayName="table-row-group"/>
+ <constant value="table-cell" displayName="table-cell"/>
+ <constant value="table-column" displayName="table-column"/>
+ <constant value="table-row" displayName="table-row"/>
+ </type>
<type id="background@repeat">
<constant value="" displayName="(None)" />
</type>
<type id="attrtext@databinding">
- <constant value="attr" displayName="form"/>
- <constant value="attr" displayName="for"/>
<constant value="text" displayName=""/>
+ <constant value="attr" displayName="for"/>
+ <constant value="attr" displayName="form"/>
</type>
</types>
\ No newline at end of file
function getClientBound() {
var wgt = $(".ui-scrollview-view");
var loc = wgt.offset();
+ var pos = wgt.position();
// var head_height = $('[data-role=header]').outerHeight();
// var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getWindowBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var head_height = $('[data-role=header]').outerHeight();
var footer_height = $('[data-role=footer]').outerHeight();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
if (bound.w < 1)
bound.w = 1;
function getPageBound() {
var wgt = $(".ui-scrollview-clip");
var loc = wgt.offset();
+ var pos = wgt.position();
var content_width = $(window).width();
var content_height = $(window).height();
l : parseInt(wgt.css("margin-left")),
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
- b : parseInt(wgt.css("margin-bottom"))
+ b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height())
};
return bound;
}
function getOneWidgetBound(wgt) {
var loc = wgt.offset();
+ var pos = wgt.position();
var origin = wgt.css("-webkit-transform-origin").split(" ");
var bound = {
r : parseInt(wgt.css("margin-right")),
t : parseInt(wgt.css("margin-top")),
b : parseInt(wgt.css("margin-bottom")),
+ left : parseInt(pos.left),
+ top : parseInt(pos.top),
+ width : parseInt(wgt.width()),
+ height : parseInt(wgt.height()),
transform : wgt.css("-webkit-transform"),
transformOriginX : parseFloat(origin[0]),
transformOriginY : parseFloat(origin[1]),