[codenameone-discussions] Re: CEF BrowserComponent (simulator) does not always update immediately after inserting images in text with Javascript.

2020-08-12 Thread 'P5music' via CodenameOne Discussions
Issue
https://github.com/codenameone/CodenameOne/issues/3219

Il giorno mercoledì 12 agosto 2020 03:56:04 UTC+2, Shai Almog ha scritto:
>
> Can you file an issue on this?
> I'm not sure if we can fix this directly since we need a reproducible test 
> case but I'm guessing other issues will include those. Once we fix those 
> issues I'd like this to be in the tracker so we can verify this was fixed. 
> If not we'll need to go over that.
>
> On Tuesday, August 11, 2020 at 11:29:23 AM UTC+3 P5music wrote:
>
>> I do not see any message in the devtools console. But it is possible I am 
>> not using it correctly.
>> In the attached images you can see what's in Chrome. 
>> The depicted screen is the BrowserComponent. It does not resemble what I 
>> have on my layout, that is, a BC with text inside as usual. When inserting 
>> the image, regardless it is the case that it appears or not in the BC, a 
>> blue rectangle appears in the above mentioned screen, then if I click again 
>> on the BC the rectangle becomes gray, then next time it disappears.
>> Notice that when the image is correctly inserted in the DOM it is 
>> highlighted in blue first, then it becomes normal.
>>
>>
>> Il giorno martedì 11 agosto 2020 03:59:26 UTC+2, Shai Almog ha scritto:
>>>
>>> Odd. It might be a refresh problem. I'm assuming there's nothing obvious 
>>> in the JavaScript console. Right?
>>>
>>> On Monday, August 10, 2020 at 9:28:07 PM UTC+3 P5music wrote:
>>>
 I think this could be an issue for the CEF BrowserComponent so I report 
 it.
 My app has this BrowserComponent for text editing. There is some 
 functionality that encompasses creating an image in text, at certain 
 offset.
 I can easily do that but the BC behaviour changes accordingly to the 
 offset or sometimes in erratic fashion.
 Here's what happens. When the offset is 0 or the last position the 
 image does not appear just after inserting in the DOM as expected, instead 
 I have to enter the editing field again to see it (and the size of the BC 
 changes at this time, not before, so it is updated at this time and not 
 before). 
 This happens every time for those offset positions, but sometimes it 
 happens in intermediate positions.
 No matter whether I call focus() or other methods on the element (in 
 Javascript), or other workarounds, the behaviour is solid, like it is an 
 issue.
 Thanks in advance

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1bf25bad-ec45-4bcb-9ea9-5f3ada117f32o%40googlegroups.com.


[codenameone-discussions] Re: CEF BrowserComponent (simulator) does not always update immediately after inserting images in text with Javascript.

2020-08-11 Thread Shai Almog
Can you file an issue on this?
I'm not sure if we can fix this directly since we need a reproducible test 
case but I'm guessing other issues will include those. Once we fix those 
issues I'd like this to be in the tracker so we can verify this was fixed. 
If not we'll need to go over that.

On Tuesday, August 11, 2020 at 11:29:23 AM UTC+3 P5music wrote:

> I do not see any message in the devtools console. But it is possible I am 
> not using it correctly.
> In the attached images you can see what's in Chrome. 
> The depicted screen is the BrowserComponent. It does not resemble what I 
> have on my layout, that is, a BC with text inside as usual. When inserting 
> the image, regardless it is the case that it appears or not in the BC, a 
> blue rectangle appears in the above mentioned screen, then if I click again 
> on the BC the rectangle becomes gray, then next time it disappears.
> Notice that when the image is correctly inserted in the DOM it is 
> highlighted in blue first, then it becomes normal.
>
>
> Il giorno martedì 11 agosto 2020 03:59:26 UTC+2, Shai Almog ha scritto:
>>
>> Odd. It might be a refresh problem. I'm assuming there's nothing obvious 
>> in the JavaScript console. Right?
>>
>> On Monday, August 10, 2020 at 9:28:07 PM UTC+3 P5music wrote:
>>
>>> I think this could be an issue for the CEF BrowserComponent so I report 
>>> it.
>>> My app has this BrowserComponent for text editing. There is some 
>>> functionality that encompasses creating an image in text, at certain offset.
>>> I can easily do that but the BC behaviour changes accordingly to the 
>>> offset or sometimes in erratic fashion.
>>> Here's what happens. When the offset is 0 or the last position the image 
>>> does not appear just after inserting in the DOM as expected, instead I have 
>>> to enter the editing field again to see it (and the size of the BC changes 
>>> at this time, not before, so it is updated at this time and not before). 
>>> This happens every time for those offset positions, but sometimes it 
>>> happens in intermediate positions.
>>> No matter whether I call focus() or other methods on the element (in 
>>> Javascript), or other workarounds, the behaviour is solid, like it is an 
>>> issue.
>>> Thanks in advance
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3ce4d867-89d8-497a-b00a-7e4d2e43dd5an%40googlegroups.com.


[codenameone-discussions] Re: CEF BrowserComponent (simulator) does not always update immediately after inserting images in text with Javascript.

2020-08-11 Thread 'P5music' via CodenameOne Discussions
I do not see any message in the devtools console. But it is possible I am 
not using it correctly.
In the attached images you can see what's in Chrome. 
The depicted screen is the BrowserComponent. It does not resemble what I 
have on my layout, that is, a BC with text inside as usual. When inserting 
the image, regardless it is the case that it appears or not in the BC, a 
blue rectangle appears in the above mentioned screen, then if I click again 
on the BC the rectangle becomes gray, then next time it disappears.
Notice that when the image is correctly inserted in the DOM it is 
highlighted in blue first, then it becomes normal.

Il giorno martedì 11 agosto 2020 03:59:26 UTC+2, Shai Almog ha scritto:
>
> Odd. It might be a refresh problem. I'm assuming there's nothing obvious 
> in the JavaScript console. Right?
>
> On Monday, August 10, 2020 at 9:28:07 PM UTC+3 P5music wrote:
>
>> I think this could be an issue for the CEF BrowserComponent so I report 
>> it.
>> My app has this BrowserComponent for text editing. There is some 
>> functionality that encompasses creating an image in text, at certain offset.
>> I can easily do that but the BC behaviour changes accordingly to the 
>> offset or sometimes in erratic fashion.
>> Here's what happens. When the offset is 0 or the last position the image 
>> does not appear just after inserting in the DOM as expected, instead I have 
>> to enter the editing field again to see it (and the size of the BC changes 
>> at this time, not before, so it is updated at this time and not before). 
>> This happens every time for those offset positions, but sometimes it 
>> happens in intermediate positions.
>> No matter whether I call focus() or other methods on the element (in 
>> Javascript), or other workarounds, the behaviour is solid, like it is an 
>> issue.
>> Thanks in advance
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fa3a1533-c890-4a8e-ba25-260d5ce714b6o%40googlegroups.com.


[codenameone-discussions] Re: CEF BrowserComponent (simulator) does not always update immediately after inserting images in text with Javascript.

2020-08-10 Thread Shai Almog
Odd. It might be a refresh problem. I'm assuming there's nothing obvious in 
the JavaScript console. Right?

On Monday, August 10, 2020 at 9:28:07 PM UTC+3 P5music wrote:

> I think this could be an issue for the CEF BrowserComponent so I report it.
> My app has this BrowserComponent for text editing. There is some 
> functionality that encompasses creating an image in text, at certain offset.
> I can easily do that but the BC behaviour changes accordingly to the 
> offset or sometimes in erratic fashion.
> Here's what happens. When the offset is 0 or the last position the image 
> does not appear just after inserting in the DOM as expected, instead I have 
> to enter the editing field again to see it (and the size of the BC changes 
> at this time, not before, so it is updated at this time and not before). 
> This happens every time for those offset positions, but sometimes it 
> happens in intermediate positions.
> No matter whether I call focus() or other methods on the element (in 
> Javascript), or other workarounds, the behaviour is solid, like it is an 
> issue.
> Thanks in advance
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ce98f649-1d84-44a4-a883-d27b81539bc6n%40googlegroups.com.