Task module size parameters not working in MS Teams V2 app when using number of pixels

teamstester 0 Reputation points
2024-01-09T03:48:07.58+00:00

We are using task modules in tabs for our Microsoft Teams custom application. The sizing works fine for the task modules in Microsoft Teams classic version when specifying the number of pixels but the sizing does not work in the new Microsoft Teams v2 when specifying the number of pixels.
We are using the following command in an Angular application,

this.microsoftTeams.tasks.startTask(taskInfo, (_, result) => {

and passing in the sizing via the TaskInfo object

let taskInfo = {
      height: 2400,
      width: 2400,
      url: 'mycustomurl'
    };
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,298 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,334 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.