Ultralight icon indicating copy to clipboard operation
Ultralight copied to clipboard

Resize handle/gripper for div/textarea does not appear; console warnings about platform resource textAreaResizeCorner

Open JohnKlenk opened this issue 4 years ago • 1 comments

For a resizable div or textarea, the resize handle/gripper at the bottom-right corner does not appear. So there is no visual indication that the element is able to be resized, even though it can be if you drag from the correct location.

This happens in both the 1.2.1 build that I'm using, and the latest build (Oct 1, 2021).

The Debug Console in VS Code shows the following (which comes through ultralight::Logger) twice the first time per app session that a resizable element is rendered: WARNING: trying to load platform resource 'textAreaResizeCorner'

Maybe a problem with RenderLayer::drawPlatformResizerImage() in https://github.com/ultralight-ux/WebCore/blob/master/Source/WebCore/rendering/RenderLayer.cpp ?

Resize handle missing in Ultralight

JohnKlenk avatar Nov 02 '21 22:11 JohnKlenk

HTML to reproduce the issue using the "Sample 8 - Web Browser" app (note that in the style, only the resize and overflow attributes are necessary):

<html>

<head>
<style> 
.resizable {
  border: 1px solid black;
  padding: 5px; 
  width: 160px;
  height: 100px;
  resize: both;
  overflow: auto;
}
</style>
</head>

<body>
<div class="resizable">This is a resizable div.</div>
<p>
<textarea class="resizable">This is a resizable textarea.</textarea>
</body>

</html>

JohnKlenk avatar Nov 02 '21 22:11 JohnKlenk