13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='Ext-grid-plugin-Editing'>/**
</span> * @class Ext.grid.plugin.Editing
 */
 
<span id='Ext-grid-plugin-Editing-css_var-S-grid-editor-height'>/**
</span> * The height of grid editor text fields.  Defaults to $form-field-height.  If grid row
 * height is smaller than $form-field-height, defaults to the grid row height.  Grid row
 * height is caluclated by adding $grid-row-cell-line-height to the top and bottom values of
 * $grid-cell-inner-padding.
 */
$grid-editor-height: if($grid-row-height &lt; $form-field-height, $grid-row-height, $form-field-height) !default;
 
<span id='Ext-grid-plugin-Editing-css_var-S-grid-editor-padding'>/**
</span> * The padding of grid editor text fields.
 */
$grid-editor-padding:
    top($form-field-padding)
    right($grid-cell-inner-padding) - $form-field-border-width
    bottom($form-field-padding)
    left($grid-cell-inner-padding) - $form-field-border-width !default;
 
<span id='Ext-grid-plugin-Editing-css_var-S-grid-editor-font-size'>/**
</span> * @var {number}
 * The font size of the grid editor text
 */
$grid-editor-font-size: $grid-row-cell-font-size !default;
 
<span id='Ext-grid-plugin-Editing-css_var-S-grid-editor-font-weight'>/**
</span> * @var {string}
 * The font-weight of the grid editor text
 */
$grid-editor-font-weight: $grid-row-cell-font-weight !default;
 
<span id='Ext-grid-plugin-Editing-css_var-S-grid-editor-font-family'>/**
</span> * @var {string}
 * The font-family of the grid editor text
 */
$grid-editor-font-family: $grid-row-cell-font-family !default;
 
// private
$grid-editor-content-height: $grid-editor-height - vertical($grid-editor-padding) - vertical($form-field-border-width);
 
// private
$grid-editor-font: $grid-editor-font-weight #{$grid-editor-font-size}/#{$grid-editor-content-height} $grid-editor-font-family;
</pre>
</body>
</html>