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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xueyun Qian
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
Show 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 @@
top: 0 !important;\n
left: 0 !important;\n
z-index: 4242 !important;\n
overflow:
auto
!important;\n
overflow:
hidden
!important;\n
}\n
\n
input.ace_editor_action_button {\n
...
...
@@ -124,7 +124,7 @@
style=
"display: none;"
></textarea>
\n
\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
<div
style=
"position: relative !important; width: 100%; height: 100%;"
\n
tal:content=
"content"
\n
...
...
@@ -178,6 +178,7 @@
\n
function unmaximize(event) {\n
if(event.keyCode == 27) {\n
$(\'body\').css(\'overflow\', \'visible\');\n
ace_editor_container_div.removeClass(\'maximize\');\n
ace_editor_container_div.prependTo(ace_editor_container_div_parent_before_maximized);\n
setContainerDivSize(event);\n
...
...
@@ -185,20 +186,21 @@
}\n
\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
\n
ace_editor_container_div.prependTo(body_element);\n
ace_editor_container_div.addClass(\'maximize\');\n
ace_editor_container_div.width($(window).width());\n
ace_editor_container_div.height($(window).height());\n
\n
body_element = $(\'body\');\n
ace_editor_container_div.width($(window).innerWidth());\n
ace_editor_container_div.height($(window).innerHeight());\n
\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.animate({opacity: 0.25}, 1500,\n
function() { $(this).remove(); });\n
\n
ace_editor_container_div.prependTo(body_element);\n
$(document).keyup(unmaximize);\n
ace_editor.resize();\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
* Add full-screen class meaningful when this will be accepted by W3C.
...
...
bt5/erp5_ace_editor/bt/revision
View file @
f26f2fa3
3
\ No newline at end of file
4
\ 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