Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
f26f2fa3
Commit
f26f2fa3
authored
Feb 11, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show overflow on maximized mode as scrollbars are handled by Ace itself.
parent
5715c732
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
bt5/erp5_ace_editor/SkinTemplateItem/portal_skins/erp5_ace_editor/ace_editor_support.xml
...eItem/portal_skins/erp5_ace_editor/ace_editor_support.xml
+9
-7
bt5/erp5_ace_editor/bt/change_log
bt5/erp5_ace_editor/bt/change_log
+3
-0
bt5/erp5_ace_editor/bt/revision
bt5/erp5_ace_editor/bt/revision
+1
-1
No files found.
bt5/erp5_ace_editor/SkinTemplateItem/portal_skins/erp5_ace_editor/ace_editor_support.xml
View file @
f26f2fa3
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
top: 0 !important;\n
top: 0 !important;\n
left: 0 !important;\n
left: 0 !important;\n
z-index: 4242 !important;\n
z-index: 4242 !important;\n
overflow:
auto
!important;\n
overflow:
hidden
!important;\n
}\n
}\n
\n
\n
input.ace_editor_action_button {\n
input.ace_editor_action_button {\n
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
style=
"display: none;"
></textarea>
\n
style=
"display: none;"
></textarea>
\n
\n
\n
<div
tal:attributes=
"id string:${container_div_id}"
\n
<div
tal:attributes=
"id string:${container_div_id}"
\n
style=
"width: 200px; height: 400px;\n
style=
"width: 200px; height: 400px;
overflow: hidden !important;
\n
border: 1px solid #97B0D1; background-color: white !important;"
>
\n
border: 1px solid #97B0D1; background-color: white !important;"
>
\n
<div
style=
"position: relative !important; width: 100%; height: 100%;"
\n
<div
style=
"position: relative !important; width: 100%; height: 100%;"
\n
tal:content=
"content"
\n
tal:content=
"content"
\n
...
@@ -178,6 +178,7 @@
...
@@ -178,6 +178,7 @@
\n
\n
function unmaximize(event) {\n
function unmaximize(event) {\n
if(event.keyCode == 27) {\n
if(event.keyCode == 27) {\n
$(\'body\').css(\'overflow\', \'visible\');\n
ace_editor_container_div.removeClass(\'maximize\');\n
ace_editor_container_div.removeClass(\'maximize\');\n
ace_editor_container_div.prependTo(ace_editor_container_div_parent_before_maximized);\n
ace_editor_container_div.prependTo(ace_editor_container_div_parent_before_maximized);\n
setContainerDivSize(event);\n
setContainerDivSize(event);\n
...
@@ -185,20 +186,21 @@
...
@@ -185,20 +186,21 @@
}\n
}\n
\n
\n
function maximize() {\n
function maximize() {\n
body_element = $(\'body\');\n
body_element.css(\'overflow\', \'hidden\');\n
\n
ace_editor_container_div_parent_before_maximized = ace_editor_container_div.parent();\n
ace_editor_container_div_parent_before_maximized = ace_editor_container_div.parent();\n
\n
\n
ace_editor_container_div.prependTo(body_element);\n
ace_editor_container_div.addClass(\'maximize\');\n
ace_editor_container_div.addClass(\'maximize\');\n
ace_editor_container_div.width($(window).width());\n
ace_editor_container_div.width($(window).innerWidth());\n
ace_editor_container_div.height($(window).height());\n
ace_editor_container_div.height($(window).innerHeight());\n
\n
body_element = $(\'body\');\n
\n
\n
body_element.prepend(ace_editor_maximize_mode_message);\n
body_element.prepend(ace_editor_maximize_mode_message);\n
ace_editor_maximize_mode_message.css(\'opacity\', 1.0);\n
ace_editor_maximize_mode_message.css(\'opacity\', 1.0);\n
ace_editor_maximize_mode_message.animate({opacity: 0.25}, 1500,\n
ace_editor_maximize_mode_message.animate({opacity: 0.25}, 1500,\n
function() { $(this).remove(); });\n
function() { $(this).remove(); });\n
\n
\n
ace_editor_container_div.prependTo(body_element);\n
$(document).keyup(unmaximize);\n
$(document).keyup(unmaximize);\n
ace_editor.resize();\n
ace_editor.resize();\n
}\n
}\n
...
...
bt5/erp5_ace_editor/bt/change_log
View file @
f26f2fa3
2012-02-11 arnaud.fontaine
* Do not show overflow on maximized mode as scrollbars are handled by Ace itself.
2012-02-11 arnaud.fontaine
2012-02-11 arnaud.fontaine
* Add full-screen class meaningful when this will be accepted by W3C.
* Add full-screen class meaningful when this will be accepted by W3C.
...
...
bt5/erp5_ace_editor/bt/revision
View file @
f26f2fa3
3
4
\ No newline at end of file
\ No newline at end of file
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