Skip to content

Commit ba4db99

Browse files
committed
use absolute top/left position for full size
1 parent bda3e7c commit ba4db99

File tree

9 files changed

+26
-27
lines changed

9 files changed

+26
-27
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stage-js",
3-
"description": "2D HTML5 JavaScript library for cross-platform game development",
3+
"description": "2D JavaScript library for cross-platform HTML5 game development",
44
"homepage": "http://piqnt.com/stage.js/",
55
"keywords": [
66
"html5",

dist/stage.cordova.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* Stage.js 0.8.6
2+
* Stage.js 0.8.7
33
*
4-
* @copyright 2016 Ali Shakiba http://shakiba.me/stage.js
4+
* @copyright 2017 Ali Shakiba http://shakiba.me/stage.js
55
* @license The MIT License
66
*/
77
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Stage=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
@@ -1502,6 +1502,8 @@ function AppLoader(app, configs) {
15021502
DEBUG && console.log("Creating Canvas...");
15031503
canvas = document.createElement("canvas");
15041504
canvas.style.position = "absolute";
1505+
canvas.style.top = "0";
1506+
canvas.style.left = "0";
15051507
var body = document.body;
15061508
body.insertBefore(canvas, body.firstChild);
15071509
}

dist/stage.cordova.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stage.web.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* Stage.js 0.8.6
2+
* Stage.js 0.8.7
33
*
4-
* @copyright 2016 Ali Shakiba http://shakiba.me/stage.js
4+
* @copyright 2017 Ali Shakiba http://shakiba.me/stage.js
55
* @license The MIT License
66
*/
77
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Stage=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
@@ -1475,6 +1475,8 @@ function AppLoader(app, configs) {
14751475
DEBUG && console.log("Creating Canvas...");
14761476
canvas = document.createElement("canvas");
14771477
canvas.style.position = "absolute";
1478+
canvas.style.top = "0";
1479+
canvas.style.left = "0";
14781480
var body = document.body;
14791481
body.insertBefore(canvas, body.firstChild);
14801482
}

dist/stage.web.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/example.css

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
* {
2-
margin: 0;
3-
padding: 0;
4-
border: none;
5-
}
6-
7-
body,html {
8-
height: 100%;
9-
width: 100%;
10-
font-family: sans-serif;
11-
}
12-
131
body {
2+
font-family: sans-serif;
143
overflow: hidden;
154
}
165

lib/loader/cordova.js

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ function AppLoader(app, configs) {
7878
DEBUG && console.log('Creating Canvas...');
7979
canvas = document.createElement('canvas');
8080
canvas.style.position = 'absolute';
81+
canvas.style.top = '0';
82+
canvas.style.left = '0';
83+
8184
var body = document.body;
8285
body.insertBefore(canvas, body.firstChild);
8386
}

lib/loader/web.js

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ function AppLoader(app, configs) {
4444
DEBUG && console.log('Creating Canvas...');
4545
canvas = document.createElement('canvas');
4646
canvas.style.position = 'absolute';
47+
canvas.style.top = '0';
48+
canvas.style.left = '0';
49+
4750
var body = document.body;
4851
body.insertBefore(canvas, body.firstChild);
4952
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stage-js",
3-
"version": "0.8.6",
4-
"description": "2D HTML5 JavaScript library for cross-platform game development",
3+
"version": "0.8.7",
4+
"description": "2D JavaScript library for cross-platform HTML5 game development",
55
"homepage": "http://piqnt.com/stage.js/",
66
"keywords": [
77
"html5",
@@ -15,7 +15,7 @@
1515
"license": "MIT",
1616
"repository": {
1717
"type": "git",
18-
"url": "git://github.com/piqnt/stage.js.git"
18+
"url": "git://github.com/shakiba/stage.js.git"
1919
},
2020
"main": "lib/index.js",
2121
"files": [

0 commit comments

Comments
 (0)