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
866ef756
Commit
866ef756
authored
Apr 05, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Fix Bug 33478.
parent
58b7bd51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
apps/common/main/lib/component/ComboDataView.js
apps/common/main/lib/component/ComboDataView.js
+6
-2
apps/spreadsheeteditor/main/app/view/ChartSettings.js
apps/spreadsheeteditor/main/app/view/ChartSettings.js
+2
-0
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
+4
-2
No files found.
apps/common/main/lib/component/ComboDataView.js
View file @
866ef756
...
...
@@ -59,7 +59,8 @@ define([
enableKeyEvents
:
false
,
beforeOpenHandler
:
null
,
additionalMenuItems
:
null
,
showLast
:
true
showLast
:
true
,
minWidth
:
-
1
},
template
:
_
.
template
([
...
...
@@ -86,6 +87,7 @@ define([
this
.
rootHeight
=
0
;
this
.
rendered
=
false
;
this
.
needFillComboView
=
false
;
this
.
minWidth
=
this
.
options
.
minWidth
;
this
.
fieldPicker
=
new
Common
.
UI
.
DataView
({
cls
:
'
field-picker
'
,
...
...
@@ -215,6 +217,8 @@ define([
width
=
this
.
cmpEl
.
width
(),
height
=
this
.
cmpEl
.
height
();
if
(
width
<
this
.
minWidth
)
return
;
if
(
this
.
rootWidth
!=
width
||
this
.
rootHeight
!=
height
)
{
this
.
rootWidth
=
width
;
this
.
rootHeight
=
height
;
...
...
@@ -420,7 +424,7 @@ define([
var
indexRec
=
store
.
indexOf
(
record
),
countRec
=
store
.
length
,
maxViewCount
=
Math
.
floor
(
(
fieldPickerEl
.
width
()
)
/
(
me
.
itemWidth
+
(
me
.
itemMarginLeft
||
0
)
+
(
me
.
itemMarginRight
||
0
)
+
(
me
.
itemPaddingLeft
||
0
)
+
(
me
.
itemPaddingRight
||
0
)
+
maxViewCount
=
Math
.
floor
(
Math
.
max
(
fieldPickerEl
.
width
(),
me
.
minWidth
)
/
(
me
.
itemWidth
+
(
me
.
itemMarginLeft
||
0
)
+
(
me
.
itemMarginRight
||
0
)
+
(
me
.
itemPaddingLeft
||
0
)
+
(
me
.
itemPaddingRight
||
0
)
+
(
me
.
itemBorderLeft
||
0
)
+
(
me
.
itemBorderRight
||
0
))),
newStyles
=
[];
...
...
apps/spreadsheeteditor/main/app/view/ChartSettings.js
View file @
866ef756
...
...
@@ -925,6 +925,7 @@ define([
{
chartSettings
:
props
,
imageSettings
:
(
me
.
isChart
)
?
me
.
_originalProps
:
null
,
sparklineStyles
:
me
.
sparklineStyles
,
isChart
:
me
.
isChart
,
api
:
me
.
api
,
handler
:
function
(
result
,
value
)
{
...
...
@@ -1109,6 +1110,7 @@ define([
if
(
styles
&&
styles
.
length
>
1
){
var
stylesStore
=
this
.
cmbSparkStyle
.
menuPicker
.
store
,
selectedIdx
=
styles
[
styles
.
length
-
1
];
this
.
sparklineStyles
=
styles
;
if
(
stylesStore
.
length
==
styles
.
length
-
1
)
{
var
data
=
stylesStore
.
models
;
for
(
var
i
=
0
;
i
<
styles
.
length
-
1
;
i
++
)
{
...
...
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
View file @
866ef756
...
...
@@ -91,6 +91,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
this
.
api
=
this
.
options
.
api
;
this
.
chartSettings
=
this
.
options
.
chartSettings
;
this
.
imageSettings
=
this
.
options
.
imageSettings
;
this
.
sparklineStyles
=
this
.
options
.
sparklineStyles
;
this
.
isChart
=
this
.
options
.
isChart
;
this
.
vertAxisProps
=
null
;
this
.
horAxisProps
=
null
;
...
...
@@ -819,7 +820,8 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
itemHeight
:
50
,
menuMaxHeight
:
272
,
enableKeyEvents
:
true
,
cls
:
'
combo-spark-style
'
cls
:
'
combo-spark-style
'
,
minWidth
:
190
});
this
.
cmbSparkStyle
.
render
(
$
(
'
#spark-dlg-combo-style
'
));
this
.
cmbSparkStyle
.
openButton
.
menu
.
cmpEl
.
css
({
...
...
@@ -1383,7 +1385,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
if
(
record
)
this
.
btnSparkType
.
setIconCls
(
'
item-chartlist
'
+
record
.
get
(
'
iconCls
'
));
this
.
updateSparkStyles
(
props
.
asc_getStyles
());
this
.
updateSparkStyles
(
(
this
.
sparklineStyles
)
?
this
.
sparklineStyles
:
props
.
asc_getStyles
());
if
(
this
.
_state
.
SparkType
!==
Asc
.
c_oAscSparklineType
.
Line
)
this
.
_arrEmptyCells
.
pop
();
...
...
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