We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0255a55 commit 9c7b2b9Copy full SHA for 9c7b2b9
cocos2d/core/platform/CCEGLView.js
@@ -1035,7 +1035,15 @@ cc.ContentStrategy = cc.Class.extend(/** @lends cc.ContentStrategy# */{
1035
*/
1036
var EqualToFrame = cc.ContainerStrategy.extend({
1037
apply: function (view) {
1038
+ var frameH = view._frameSize.height, containerStyle = cc.container.style;
1039
this._setupContainer(view, view._frameSize.width, view._frameSize.height);
1040
+ // Setup container's margin and padding
1041
+ if (view._isRotated) {
1042
+ containerStyle.marginLeft = frameH + 'px';
1043
+ }
1044
+ else {
1045
+ containerStyle.margin = '0px';
1046
1047
}
1048
});
1049
0 commit comments