Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Kellershoff
pwny.gorilla.moe
Commits
a75db584
Commit
a75db584
authored
Jun 03, 2017
by
Marco Kellershoff
Browse files
Fix layouting in firefox (with bootstrap)
parent
c8e504c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/pwny.js
View file @
a75db584
...
...
@@ -102,7 +102,8 @@
'
div
'
,
null
,
[
[
'
id
'
,
'
table
'
]
[
'
id
'
,
'
table
'
],
[
'
class
'
,
'
container
'
]
]
),
'
#app
'
...
...
@@ -112,7 +113,8 @@
'
div
'
,
null
,
[
[
'
id
'
,
'
table-row
'
]
[
'
id
'
,
'
table-row
'
],
[
'
class
'
,
'
row
'
]
]
),
'
#table
'
...
...
@@ -123,14 +125,16 @@
'
div
'
,
null
,
[
[
'
id
'
,
'
col1
'
]
[
'
id
'
,
'
col1
'
],
[
'
class
'
,
'
col-xs-6
'
]
]
),
self
.
createElement
(
'
div
'
,
null
,
[
[
'
id
'
,
'
col2
'
]
[
'
id
'
,
'
col2
'
],
[
'
class
'
,
'
col-xs-6
'
]
]
)
],
...
...
@@ -288,6 +292,7 @@
col2
.
style
.
width
=
'
100%
'
;
col1
.
parentNode
.
removeChild
(
col1
);
$
(
ifr
).
addClass
(
'
fullscreen
'
);
$
(
col2
).
removeClass
(
'
col-xs-6
'
);
$
(
'
#table
'
).
addClass
(
'
fullscreen
'
);
};
...
...
@@ -386,10 +391,14 @@
this
.
showAndHideRun
=
function
()
{
var
is_compilable
=
self
.
isCompilable
();
if
(
is_compilable
===
false
)
{
col2
.
style
.
display
=
'
none
'
;
$
(
col1
).
removeClass
(
'
col-xs-6
'
);
$
(
col1
).
addClass
(
'
col-xs-12
'
);
$
(
col2
).
addClass
(
'
hidden
'
);
btn_run
.
style
.
display
=
'
none
'
;
}
else
{
col2
.
style
.
display
=
'
table-cell
'
;
$
(
col1
).
addClass
(
'
col-xs-6
'
);
$
(
col1
).
removeClass
(
'
col-xs-12
'
);
$
(
col2
).
removeClass
(
'
hidden
'
);
btn_run
.
style
.
display
=
'
inline-block
'
;
}
};
...
...
index.html
View file @
a75db584
...
...
@@ -22,14 +22,11 @@ html,body,#app{margin:0;padding:0;width:100%;height:100%;}
body
#app
#logo
{
display
:
none
;}
body
#app
{
margin-top
:
25px
;}
}
#table
{
display
:
table
;
#app
#table
{
width
:
100%
;
height
:
calc
(
100%
-
111px
);
}
#table-row
{
display
:
table-row
;
width
:
100%
;
#app
#table-row
{
height
:
100%
;
}
#app
{
...
...
@@ -43,9 +40,9 @@ html,body,#app{margin:0;padding:0;width:100%;height:100%;}
overflow-scrolling
:
touch
;
padding
:
20px
;
}
#col1
,
#col2
{
height
:
100%
;
width
:
50%
;
display
:
table-cell
;
}
#col1
,
#col2
{
height
:
100%
;}
#col1
.ace_editor
{
width
:
100%
;
height
:
100%
;}
#col2
iframe
{
position
:
relative
;
top
:
-10px
;
left
:
10px
;
width
:
100%
;
height
:
100%
;}
#col2
iframe
{
position
:
relative
;
width
:
100%
;
height
:
100%
;}
#app
#col2
iframe
.fullscreen
{
position
:
relative
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
border
:
0
none
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment