Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
Boris Kocherov
web-apps
Commits
cfd2b31b
Commit
cfd2b31b
authored
Jan 18, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Changed border styles for cell in the toolbar.
parent
581361b7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
9 deletions
+17
-9
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+0
-1
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+14
-6
apps/spreadsheeteditor/main/locale/en.json
apps/spreadsheeteditor/main/locale/en.json
+2
-1
apps/spreadsheeteditor/main/resources/img/toolbar/BorderSize.png
...readsheeteditor/main/resources/img/toolbar/BorderSize.png
+0
-0
apps/spreadsheeteditor/main/resources/less/toolbar.less
apps/spreadsheeteditor/main/resources/less/toolbar.less
+1
-1
No files found.
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
cfd2b31b
...
...
@@ -517,7 +517,6 @@ define([
onBordersWidth
:
function
(
menu
,
item
,
state
)
{
if
(
state
)
{
$
(
'
#id-toolbar-mnu-item-border-width .menu-item-icon
'
).
css
(
'
border-width
'
,
(
item
.
value
==
'
thin
'
?
1
:
(
item
.
value
==
'
medium
'
?
2
:
3
))
+
'
px
'
);
this
.
toolbar
.
btnBorders
.
options
.
borderswidth
=
item
.
value
;
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
this
.
toolbar
);
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
cfd2b31b
...
...
@@ -1486,9 +1486,9 @@ define([
{
caption
:
'
--
'
},
{
id
:
'
id-toolbar-mnu-item-border-width
'
,
caption
:
this
.
textBorders
Width
,
caption
:
this
.
textBorders
Style
,
iconCls
:
'
mnu-icon-item mnu-border-width
'
,
template
:
_
.
template
(
'
<a id="<%= id %>" tabindex="-1" type="menuitem"><span class="menu-item-icon" style="background-image: none; width: 11px; height: 11px; margin: 2px 7px 0 -9px;
border-style: solid; border-width: 1px; border-color: #000;
"></span><%= caption %></a>
'
),
template
:
_
.
template
(
'
<a id="<%= id %>" tabindex="-1" type="menuitem"><span class="menu-item-icon" style="background-image: none; width: 11px; height: 11px; margin: 2px 7px 0 -9px;"></span><%= caption %></a>
'
),
menu
:
(
function
(){
var
itemTemplate
=
_
.
template
(
'
<a id="<%= id %>" tabindex="-1" type="menuitem"><div class="border-size-item" style="background-position: 0 -<%= options.offsety %>px;"></div></a>
'
);
...
...
@@ -1497,9 +1497,17 @@ define([
menuAlign
:
'
tl-tr
'
,
id
:
'
toolbar-menu-borders-width
'
,
items
:
[
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
'
thin
'
,
offsety
:
0
,
checked
:
true
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
'
medium
'
,
offsety
:
20
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
'
thick
'
,
offsety
:
40
}
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
Thin
,
offsety
:
0
,
checked
:
true
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
Hair
,
offsety
:
20
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
Dotted
,
offsety
:
40
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
Dashed
,
offsety
:
60
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
DashDot
,
offsety
:
80
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
DashDotDot
,
offsety
:
100
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
Medium
,
offsety
:
120
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
MediumDashed
,
offsety
:
140
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
MediumDashDot
,
offsety
:
160
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
MediumDashDotDot
,
offsety
:
180
},
{
template
:
itemTemplate
,
stopPropagation
:
true
,
checkable
:
true
,
toggleGroup
:
'
border-width
'
,
value
:
Asc
.
c_oAscBorderStyles
.
Thick
,
offsety
:
200
}
]
});
...
...
@@ -1852,7 +1860,7 @@ define([
tipAlignTop
:
'
Align Top
'
,
tipAlignMiddle
:
'
Align Middle
'
,
tipAlignBottom
:
'
Align Bottom
'
,
textBorders
Width
:
'
Borders Width
'
,
textBorders
Style
:
'
Border Style
'
,
textBordersColor
:
'
Borders Color
'
,
textAlignLeft
:
'
Left align text
'
,
textAlignRight
:
'
Right align text
'
,
...
...
apps/spreadsheeteditor/main/locale/en.json
View file @
cfd2b31b
...
...
@@ -1484,7 +1484,8 @@
"SSE.Views.Toolbar.textAllBorders"
:
"All Borders"
,
"SSE.Views.Toolbar.textBold"
:
"Bold"
,
"SSE.Views.Toolbar.textBordersColor"
:
"Border Color"
,
"SSE.Views.Toolbar.textBordersWidth"
:
"Border Width"
,
"del_SSE.Views.Toolbar.textBordersWidth"
:
"Border Width"
,
"SSE.Views.Toolbar.textBordersStyle"
:
"Border Style"
,
"SSE.Views.Toolbar.textBottomBorders"
:
"Bottom Borders"
,
"SSE.Views.Toolbar.textCenterBorders"
:
"Inside Vertical Borders"
,
"SSE.Views.Toolbar.textClockwise"
:
"Angle Clockwise"
,
...
...
apps/spreadsheeteditor/main/resources/img/toolbar/BorderSize.png
View replaced file @
581361b7
View file @
cfd2b31b
99 Bytes
|
W:
|
H:
2.39 KB
|
W:
|
H:
2-up
Swipe
Onion skin
apps/spreadsheeteditor/main/resources/less/toolbar.less
View file @
cfd2b31b
...
...
@@ -246,7 +246,7 @@
#id-toolbar-mnu-item-border-width {
.border-size-item {
background: ~"url(@{app-image-const-path}/toolbar/BorderSize.png)
repeat-x
scroll 0 0";
background: ~"url(@{app-image-const-path}/toolbar/BorderSize.png)
no-repeat
scroll 0 0";
width: 80px;
height: 20px;
margin-top: -3px;
...
...
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