setLayout
Call to set canvas size based on web page content. Ususally the call to RxCore.setLayout is followed by a call to RxCore.doResize();
See : RxCore.doResize
Syntax
RxCore.setLayout({
offsetWidth: 320,
offsetHeight: 64,
absolute: false
});
RxCore.doResize();
Parameters
layout: object — Object containing propertiesoffsetWidth,offsetHeightandabsolute.offsetWidthexpects values in pixels.offsetHeightexpects values in pixels.absoluteis a boolean that determine if theoffsetWidth,offsetHeightare treated as margins -falseor absolute values -true
Returns
- NA — This method does not return a value.