Resize text area automatically to show all text on load without scrolling in Blazor

I am trying to resize text area automatically to show all text on load without scrolling in Blazor. <textarea class=”form-control” maxlength=”255″ style=”width:250px;” @bind=”Comment” id=”Comments” required></textarea> Code: @code { public string Comment = “This is test comments for textarea. This is test comments for textarea.”; } The following css i use but not working… textarea {…

Details

How to separate FireStore logic into own classes

I have this code public String getPoolValue() { final DocumentReference docRef = database.collection(“pool”).document(“bq2a7gLnz9bpEyIyQeNz”); docRef.get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() { @Override public void onSuccess(DocumentSnapshot documentSnapshot) { Pool pool = documentSnapshot.toObject(Pool.class); valueOfPool=String.valueOf(pool.getValue()); } }); return valueOfPool; } And what happens, is it goes through this code, returns valueOfPool right away without going through the onSuccess block and then goes through…

Details