UNPKG

@titanium/turbo

Version:

<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>

14 lines (12 loc) 644 B
var U = require('../../../utils'); exports.parse = function(node, state) { var height = state.parent.node.getAttribute('height') || null; var width = state.parent.node.getAttribute('width') || null; if (height || width) { // apply height/width attributes set on <Popover> to the <ContentView> within var contentwin = U.XML.getElementsFromNodes(node.childNodes)[0]; if (height && !contentwin.hasAttribute('height')) {contentwin.setAttribute('height', height);} if (width && !contentwin.hasAttribute('width')) {contentwin.setAttribute('width', width);} } return require('./Ti.UI.iPad.Popover._ProxyProperty').parse(node, state); };