plainheart commented on a change in pull request #16691:
URL: https://github.com/apache/echarts/pull/16691#discussion_r829665688
##########
File path: src/component/toolbox/feature/DataView.ts
##########
@@ -363,7 +364,7 @@ class DataView extends
ToolboxFeature<ToolboxDataViewFeatureOption> {
textarea.readOnly = model.get('readOnly');
const style = textarea.style;
// eslint-disable-next-line max-len
- style.cssText =
'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none';
+ style.cssText =
'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;vertical-align:middle;box-sizing:border-box;outline:none';
Review comment:
This is to remove the expected gap to avoid the scrollbar since the
default `display` of `textarea` is `inline-block`. Of course, we can also set
`display` as `block`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]