Jump to content

Avoid covering the UnimEdit with the keyboard


asapltda

Recommended Posts

When you have several tunimedit inside a TUnimForm, and we press a key inside the tunimedit, the mobile keyboard appears and covers the tunimedit where we position ourselves.

Is there a way to have the tunimedit always visible and the tunimedit, move towards the top of the form to avoid being covered by the keyboard

 

Link to comment
Share on other sites

Thanks for your interest and answer.

Could you indicate how many edits are in the form? For example, if the form fits 8 edits, if you press enter in the 6 edit, the edit moves to the top and the keyboard does not cover it?

Could you please tell me the version of unigui you use.

Thanks again for your interest.

Link to comment
Share on other sites

im found the forum the following answer that helps me to fix the problem.

But I will continue looking for the same solution that can be implemented on the client side,

There is someone who can code lkos himself on the client side to prevent the repositioning from being done on the server

 

procedure TFRECIBOPRD.SCROLLINPUT(Sender: TObject);
var
 s:string;
begin
  with sender as tUnimEdit  do
  s:=  inttostr(height);
  s:=  inttostr(TOP + height);

 Self.WebForm.JSInterface.JSCall('getScrollable().scrollTo',  ); 

);

 Self.WebForm.JSInterface.JSCall('getScrollable().scrollTo', );

 , );

end; //// 

end;


----------------------------------------------------    

Self.WebForm.JSInterface.JSCall('getScrollable().scrollTo', ['top']);

 

Link to comment
Share on other sites

×
×
  • Create New...